From 46b731b2d3cc00027637bb0b8932bba5d70f35f1 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Thu, 4 Apr 2013 11:18:47 +0200 Subject: [PATCH] common/painter.cpp: Removed unnecessary header inclusion, added variable initialization common/view/view.cpp: Added line to comply with coding style --- common/painter.cpp | 3 +-- common/view/view.cpp | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/painter.cpp b/common/painter.cpp index 46c8a15d20..75986a04a3 100644 --- a/common/painter.cpp +++ b/common/painter.cpp @@ -24,8 +24,6 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ -#include -#include #include #include #include @@ -44,6 +42,7 @@ RENDER_SETTINGS::RENDER_SETTINGS() m_highlightEnabled = false; m_hiContrastEnabled = false; m_hiContrastFactor = 0.2; + m_activeLayer = 0; // Store the predefined colors used in KiCad in format used by GAL for( int i = 0; i < NBCOLOR; i++ ) diff --git a/common/view/view.cpp b/common/view/view.cpp index 59ff028cef..79ea771df2 100644 --- a/common/view/view.cpp +++ b/common/view/view.cpp @@ -344,6 +344,7 @@ struct VIEW::drawItem VIEW* view; }; + void VIEW::redrawRect( const BOX2I& aRect ) { int totalItems = 0, totalCached = 0;