From 6f9fc8d2102d1467ab493168a5eecd6c4a04ca8e Mon Sep 17 00:00:00 2001 From: Marco Mattila Date: Tue, 1 Feb 2011 13:56:09 +0200 Subject: [PATCH] Fix drawing of mirrored texts in pcbnew. --- common/drawtxt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/drawtxt.cpp b/common/drawtxt.cpp index 8376c22503..659eee3428 100644 --- a/common/drawtxt.cpp +++ b/common/drawtxt.cpp @@ -348,7 +348,7 @@ void DrawGraphicText( EDA_DRAW_PANEL* aPanel, /* if a text size is too small, the text cannot be drawn, and it is drawn as a single * graphic line */ - if( aSize.x < 3 ) + if( ABS( aSize.x ) < 3 ) { /* draw the text as a line always vertically centered */ wxPoint end( current_char_pos.x + dx, current_char_pos.y );