comparison 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
comparison
equal deleted inserted replaced
644:8ce18ec36fae 661:7cb6112c59ca
1118 1118
1119 int sw = 0; 1119 int sw = 0;
1120 if (m_manager && m_manager->shouldShowVerticalScale()) { 1120 if (m_manager && m_manager->shouldShowVerticalScale()) {
1121 for (LayerList::iterator vi = m_layers.end(); vi != m_layers.begin(); ) { 1121 for (LayerList::iterator vi = m_layers.end(); vi != m_layers.begin(); ) {
1122 --vi; 1122 --vi;
1123 QPainter paint(image);
1124 sw = (*vi)->getVerticalScaleWidth 1123 sw = (*vi)->getVerticalScaleWidth
1125 (this, m_manager->shouldShowVerticalColourScale(), paint); 1124 (this, m_manager->shouldShowVerticalColourScale(), paint);
1126 break; 1125 break;
1127 } 1126 }
1128 } 1127 }