changeset 661:7cb6112c59ca

Avoid creating two painters on same image
author Chris Cannam
date Thu, 11 Jul 2013 17:34:33 +0100
parents 8ce18ec36fae
children 1a0fdad4af4d 12e6efc8cdc0
files view/Pane.cpp
diffstat 1 files changed, 0 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/view/Pane.cpp	Thu May 16 15:00:20 2013 +0100
+++ b/view/Pane.cpp	Thu Jul 11 17:34:33 2013 +0100
@@ -1120,7 +1120,6 @@
     if (m_manager && m_manager->shouldShowVerticalScale()) {
         for (LayerList::iterator vi = m_layers.end(); vi != m_layers.begin(); ) {
             --vi;
-            QPainter paint(image);
             sw = (*vi)->getVerticalScaleWidth
                 (this, m_manager->shouldShowVerticalColourScale(), paint);
             break;