diff view/Pane.cpp @ 661:7cb6112c59ca

Avoid creating two painters on same image
author Chris Cannam
date Thu, 11 Jul 2013 17:34:33 +0100
parents d632a1e87018
children 1a0fdad4af4d 26c5f7fd4807 1a0dfcbffaf1
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;