Comment 4 for bug 1559545

Revision history for this message
Chris Pavlina (pavlina-chris) wrote :

This fixes it for the main panel, unfortunately it is necessary to apply this to every instance of wxDC graphics throughout kicad (for instance in the component selector). Any wx wizards know a better way?

diff --git a/common/draw_panel.cpp b/common/draw_panel.cpp
index 6d20489..55fb82b 100644
--- a/common/draw_panel.cpp
+++ b/common/draw_panel.cpp
@@ -103,6 +103,8 @@ EDA_DRAW_PANEL::EDA_DRAW_PANEL( EDA_DRAW_FRAME* parent, int id,
     m_scrollIncrementX = std::min( size.x / 8, 10 );
     m_scrollIncrementY = std::min( size.y / 8, 10 );

+ SetLayoutDirection( wxLayout_LeftToRight );
+
     SetBackgroundColour( MakeColour( parent->GetDrawBgColor() ) );

 #if KICAD_USE_BUFFERED_DC || KICAD_USE_BUFFERED_PAINTDC