comparison view/Pane.cpp @ 1315:1d7921b1852f

Ensure scale appears for layer when drawn in AutoAlign mode without any other layer present to align to
author Chris Cannam
date Wed, 04 Jul 2018 15:34:16 +0100
parents 7527701c8076
children c0d8356e274f
comparison
equal deleted inserted replaced
1314:769d7890203b 1315:1d7921b1852f
592 // then the scale should be drawn from any underlying layer 592 // then the scale should be drawn from any underlying layer
593 // with a scale regardless of unit. 593 // with a scale regardless of unit.
594 594
595 int sw = topLayer->getVerticalScaleWidth 595 int sw = topLayer->getVerticalScaleWidth
596 (this, m_manager->shouldShowVerticalColourScale(), paint); 596 (this, m_manager->shouldShowVerticalColourScale(), paint);
597
598 // cerr << "sw = " << sw << endl;
599 597
600 if (sw > 0) { 598 if (sw > 0) {
601 scaleLayer = topLayer; 599 scaleLayer = topLayer;
602 m_scaleWidth = sw; 600 m_scaleWidth = sw;
603 601