diff --git a/common/view/view.cpp b/common/view/view.cpp index 2febd7288d..178c92ba10 100644 --- a/common/view/view.cpp +++ b/common/view/view.cpp @@ -86,14 +86,14 @@ private: } VIEW* m_view; ///< Current dynamic view the item is assigned to. - int m_flags; ///< Visibility flags + int m_flags; ///< Visibility flags int m_requiredUpdate; ///< Flag required for updating - ///* Helper for storing cached items group ids + ///> Helper for storing cached items group ids typedef std::pair GroupPair; - ///* Indexes of cached GAL display lists corresponding to the item (for every layer it occupies). - ///* (in the std::pair "first" stores layer number, "second" stores group id). + ///> Indexes of cached GAL display lists corresponding to the item (for every layer it occupies). + ///> (in the std::pair "first" stores layer number, "second" stores group id). GroupPair* m_groups; int m_groupsSize; @@ -240,6 +240,7 @@ private: } }; + void VIEW::OnDestroy( VIEW_ITEM* aItem ) { auto data = aItem->viewPrivData(); @@ -250,6 +251,7 @@ void VIEW::OnDestroy( VIEW_ITEM* aItem ) data->m_view->Remove( aItem ); } + VIEW::VIEW( bool aIsDynamic ) : m_enableOrderModifier( true ), m_scale( 4.0 ), diff --git a/include/view/view.h b/include/view/view.h index 873a4a9b9c..aadd42ad4e 100644 --- a/include/view/view.h +++ b/include/view/view.h @@ -1,7 +1,7 @@ /* * This program source code file is part of KiCad, a free EDA CAD application. * - * Copyright (C) 2013 CERN + * Copyright (C) 2013-2016 CERN * @author Tomasz Wlostowski * * This program is free software; you can redistribute it and/or diff --git a/pcbnew/pcbframe.cpp b/pcbnew/pcbframe.cpp index b634e32820..c24789c5cf 100644 --- a/pcbnew/pcbframe.cpp +++ b/pcbnew/pcbframe.cpp @@ -1134,7 +1134,7 @@ void PCB_EDIT_FRAME::OnUpdatePCBFromSch( wxCommandEvent& event ) } -void PCB_EDIT_FRAME::OnFlipPcbView(wxCommandEvent& evt) +void PCB_EDIT_FRAME::OnFlipPcbView( wxCommandEvent& evt ) { auto view = GetGalCanvas()->GetView(); view->SetMirror( evt.IsChecked(), false );