commit b7750a769a64aebdef214254485741574ba6c82f
Author: Bernhard Stegmaier <stegmaier@sw-systems.de>
Date:   Sun Feb 7 13:42:28 2016 +0100

    Fix bug #1529159 by not drawing zero-sized bitmaps at all

diff --git a/common/class_bitmap_base.cpp b/common/class_bitmap_base.cpp
index 3598e36..38ee9f0 100644
--- a/common/class_bitmap_base.cpp
+++ b/common/class_bitmap_base.cpp
@@ -218,6 +218,9 @@ void BITMAP_BASE::DrawBitmap( EDA_DRAW_PANEL* aPanel, wxDC* aDC, const wxPoint&
     wxPoint pos  = aPos;
     wxSize  size = GetSize();
 
+    if( ( size.x == 0 ) || ( size.y == 0 ) )
+        return;
+
     // To draw the bitmap, pos is the upper left corner position
     pos.x -= size.x / 2;
     pos.y -= size.y / 2;
