Loading common/drawframe.cpp +1 −1 Original line number Original line Diff line number Diff line Loading @@ -186,7 +186,7 @@ void WinEDA_DrawFrame::Affiche_Message( const wxString& message ) * Display the message on the bottom the frame * Display the message on the bottom the frame */ */ { { SetStatusText( message ); SetStatusText( message, 0 ); } } Loading pcbnew/basepcbframe.cpp +19 −12 Original line number Original line Diff line number Diff line Loading @@ -336,22 +336,21 @@ void WinEDA_BasePcbFrame::UpdateStatusBar() * Update the status bar information. * Update the status bar information. */ */ { { wxString Line; WinEDA_DrawFrame::UpdateStatusBar(); int dx, dy; double theta, ro; BASE_SCREEN* screen = GetBaseScreen(); if( DisplayOpt.DisplayPolarCood ) // display polar coordinates { BASE_SCREEN* screen = GetBaseScreen(); if( !screen ) if( !screen ) return; return; WinEDA_DrawFrame::UpdateStatusBar(); wxString Line; double theta, ro; dx = screen->m_Curseur.x - screen->m_O_Curseur.x; int dx = screen->m_Curseur.x - screen->m_O_Curseur.x; dy = screen->m_Curseur.y - screen->m_O_Curseur.y; int dy = screen->m_Curseur.y - screen->m_O_Curseur.y; if( DisplayOpt.DisplayPolarCood ) /* Display coordonnee polaire */ if( dx==0 && dy==0 ) { if( (dx == 0) && (dy == 0) ) theta = 0.0; theta = 0.0; else else theta = atan2( (double) -dy, (double) dx ); theta = atan2( (double) -dy, (double) dx ); Loading @@ -362,9 +361,17 @@ void WinEDA_BasePcbFrame::UpdateStatusBar() Line.Printf( g_UnitMetric ? wxT( "Ro %.3f Th %.1f" ) : wxT( "Ro %.4f Th %.1f" ), Line.Printf( g_UnitMetric ? wxT( "Ro %.3f Th %.1f" ) : wxT( "Ro %.4f Th %.1f" ), To_User_Unit( g_UnitMetric, ro, m_InternalUnits ), To_User_Unit( g_UnitMetric, ro, m_InternalUnits ), theta ); theta ); // overwrite the absolute cartesian coordinates SetStatusText( Line, 2 ); } } /* not this, because status field no. 0 is reserved for actual fleeting status information. If this is enabled, then that text is erased on every DrawPanel redraw. Field no. 0 is set with Affiche_Message() and it should persist until called again. SetStatusText( Line, 0 ); SetStatusText( Line, 0 ); */ } } Loading Loading
common/drawframe.cpp +1 −1 Original line number Original line Diff line number Diff line Loading @@ -186,7 +186,7 @@ void WinEDA_DrawFrame::Affiche_Message( const wxString& message ) * Display the message on the bottom the frame * Display the message on the bottom the frame */ */ { { SetStatusText( message ); SetStatusText( message, 0 ); } } Loading
pcbnew/basepcbframe.cpp +19 −12 Original line number Original line Diff line number Diff line Loading @@ -336,22 +336,21 @@ void WinEDA_BasePcbFrame::UpdateStatusBar() * Update the status bar information. * Update the status bar information. */ */ { { wxString Line; WinEDA_DrawFrame::UpdateStatusBar(); int dx, dy; double theta, ro; BASE_SCREEN* screen = GetBaseScreen(); if( DisplayOpt.DisplayPolarCood ) // display polar coordinates { BASE_SCREEN* screen = GetBaseScreen(); if( !screen ) if( !screen ) return; return; WinEDA_DrawFrame::UpdateStatusBar(); wxString Line; double theta, ro; dx = screen->m_Curseur.x - screen->m_O_Curseur.x; int dx = screen->m_Curseur.x - screen->m_O_Curseur.x; dy = screen->m_Curseur.y - screen->m_O_Curseur.y; int dy = screen->m_Curseur.y - screen->m_O_Curseur.y; if( DisplayOpt.DisplayPolarCood ) /* Display coordonnee polaire */ if( dx==0 && dy==0 ) { if( (dx == 0) && (dy == 0) ) theta = 0.0; theta = 0.0; else else theta = atan2( (double) -dy, (double) dx ); theta = atan2( (double) -dy, (double) dx ); Loading @@ -362,9 +361,17 @@ void WinEDA_BasePcbFrame::UpdateStatusBar() Line.Printf( g_UnitMetric ? wxT( "Ro %.3f Th %.1f" ) : wxT( "Ro %.4f Th %.1f" ), Line.Printf( g_UnitMetric ? wxT( "Ro %.3f Th %.1f" ) : wxT( "Ro %.4f Th %.1f" ), To_User_Unit( g_UnitMetric, ro, m_InternalUnits ), To_User_Unit( g_UnitMetric, ro, m_InternalUnits ), theta ); theta ); // overwrite the absolute cartesian coordinates SetStatusText( Line, 2 ); } } /* not this, because status field no. 0 is reserved for actual fleeting status information. If this is enabled, then that text is erased on every DrawPanel redraw. Field no. 0 is set with Affiche_Message() and it should persist until called again. SetStatusText( Line, 0 ); SetStatusText( Line, 0 ); */ } } Loading