From 226b877ab9ede5f2889410f534c1b1b9ec1393ca Mon Sep 17 00:00:00 2001 From: Emmeran <emmeran@gmx.net> Date: Tue, 12 Feb 2013 04:56:46 +0100 Subject: [PATCH] tabs converted to spaces except wxstruct.h --- common/drawpanel.cpp | 20 +++++++++---------- common/zoom.cpp | 6 +++--- .../gerbview_dialog_display_options_frame.cpp | 2 +- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/common/drawpanel.cpp b/common/drawpanel.cpp index a6ad825537..93d2076af3 100644 --- a/common/drawpanel.cpp +++ b/common/drawpanel.cpp @@ -160,20 +160,20 @@ BASE_SCREEN* EDA_DRAW_PANEL::GetScreen() wxPoint EDA_DRAW_PANEL::ToDeviceXY( const wxPoint& pos ) { - wxPoint ret; - INSTALL_UNBUFFERED_DC( dc, this ); - ret.x = dc.LogicalToDeviceX( pos.x ); - ret.y = dc.LogicalToDeviceY( pos.y ); - return ret; + wxPoint ret; + INSTALL_UNBUFFERED_DC( dc, this ); + ret.x = dc.LogicalToDeviceX( pos.x ); + ret.y = dc.LogicalToDeviceY( pos.y ); + return ret; } wxPoint EDA_DRAW_PANEL::ToLogicalXY( const wxPoint& pos ) { - wxPoint ret; - INSTALL_UNBUFFERED_DC( dc, this ); - ret.x = dc.DeviceToLogicalX( pos.x ); - ret.y = dc.DeviceToLogicalY( pos.y ); - return ret; + wxPoint ret; + INSTALL_UNBUFFERED_DC( dc, this ); + ret.x = dc.DeviceToLogicalX( pos.x ); + ret.y = dc.DeviceToLogicalY( pos.y ); + return ret; } void EDA_DRAW_PANEL::DrawCrossHair( wxDC* aDC, EDA_COLOR_T aColor ) diff --git a/common/zoom.cpp b/common/zoom.cpp index ef36d7567f..06ee212191 100644 --- a/common/zoom.cpp +++ b/common/zoom.cpp @@ -56,9 +56,9 @@ void EDA_DRAW_FRAME::RedrawScreen( const wxPoint& aCenterPoint, bool aWarpPointe void EDA_DRAW_FRAME::RedrawScreen2( const wxPoint& posBefore ) { - wxPoint dPos = posBefore - m_canvas->GetClientSize() / 2; // relative screen position to center before zoom - wxPoint newScreenPos = m_canvas->ToDeviceXY( GetScreen()->GetCrossHairPosition() ); // screen position of crosshair after zoom - wxPoint newCenter = m_canvas->ToLogicalXY( newScreenPos - dPos ); + wxPoint dPos = posBefore - m_canvas->GetClientSize() / 2; // relative screen position to center before zoom + wxPoint newScreenPos = m_canvas->ToDeviceXY( GetScreen()->GetCrossHairPosition() ); // screen position of crosshair after zoom + wxPoint newCenter = m_canvas->ToLogicalXY( newScreenPos - dPos ); AdjustScrollBars( newCenter ); diff --git a/gerbview/dialogs/gerbview_dialog_display_options_frame.cpp b/gerbview/dialogs/gerbview_dialog_display_options_frame.cpp index 70312afccc..24928c9f75 100644 --- a/gerbview/dialogs/gerbview_dialog_display_options_frame.cpp +++ b/gerbview/dialogs/gerbview_dialog_display_options_frame.cpp @@ -143,7 +143,7 @@ void DIALOG_DISPLAY_OPTIONS::OnOKBUttonClick( wxCommandEvent& event ) m_Parent->SetPageSettings( pageInfo ); - m_Parent->GetCanvas()->SetEnableZoomNoCenter( m_OptZoomNoCenter->GetValue() ); + m_Parent->GetCanvas()->SetEnableZoomNoCenter( m_OptZoomNoCenter->GetValue() ); m_Parent->GetCanvas()->SetEnableMiddleButtonPan( m_OptMiddleButtonPan->GetValue() ); m_Parent->GetCanvas()->SetMiddleButtonPanLimited( m_OptMiddleButtonPanLimited->GetValue() );