# HG changeset patch # User Chris Cannam # Date 1373560473 -3600 # Node ID 7cb6112c59ca1e4161876dca31adcb00f77c6d6b # Parent 8ce18ec36faea25819f5e49daefee7d21c1162e7 Avoid creating two painters on same image diff -r 8ce18ec36fae -r 7cb6112c59ca view/Pane.cpp --- 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;