Commit 8a5fedb7 authored by Maciej Suminski's avatar Maciej Suminski
Browse files

Code formatting and cleaning.

parent 7645ed86
Loading
Loading
Loading
Loading
+19 −18
Original line number Original line Diff line number Diff line
@@ -1019,7 +1019,9 @@ void VIEW::UpdateItems()
    m_needsUpdate.clear();
    m_needsUpdate.clear();
}
}


struct VIEW::extentsVisitor {

struct VIEW::extentsVisitor
{
    BOX2I extents;
    BOX2I extents;
    bool first;
    bool first;


@@ -1038,14 +1040,13 @@ struct VIEW::extentsVisitor {
    }
    }
};
};



const BOX2I VIEW::CalculateExtents() 
const BOX2I VIEW::CalculateExtents() 
{
{
  
    extentsVisitor v;
    extentsVisitor v;
    BOX2I fullScene;
    BOX2I fullScene;
    fullScene.SetMaximum();
    fullScene.SetMaximum();



    BOOST_FOREACH( VIEW_LAYER* l, m_orderedLayers )
    BOOST_FOREACH( VIEW_LAYER* l, m_orderedLayers )
    {
    {
        l->items->Query( fullScene, v );
        l->items->Query( fullScene, v );
+0 −1
Original line number Original line Diff line number Diff line
@@ -29,7 +29,6 @@
#include <tool/tool_dispatcher.h>
#include <tool/tool_dispatcher.h>


#include <class_draw_panel_gal.h>
#include <class_draw_panel_gal.h>
//#include <pcbnew_id.h>


#include "selection_tool.h"
#include "selection_tool.h"
#include "edit_tool.h"
#include "edit_tool.h"