diff view/View.h @ 1539:bfacecf7ea7e

Overhaul choice of layer to show scale, in Pane::drawVerticalScale, making it call out to the same logic used by View::getVisibleExtentsForUnit when appropriate. Also refuse to accept scale from dormant top layer.
author Chris Cannam
date Tue, 15 Oct 2019 14:53:25 +0100
parents 4f8c72adbf43
children ae2d5f8ff005
line wrap: on
line diff
--- a/view/View.h	Tue Oct 15 14:51:58 2019 +0100
+++ b/view/View.h	Tue Oct 15 14:53:25 2019 +0100
@@ -502,6 +502,8 @@
     LayerList getScrollableBackLayers(bool testChanged, bool &changed) const;
     LayerList getNonScrollableFrontLayers(bool testChanged, bool &changed) const;
 
+    Layer *getScaleProvidingLayerForUnit(QString unit) const;
+    
     ZoomLevel getZoomConstraintLevel(ZoomLevel level,
                                      ZoomConstraint::RoundingDirection dir =
                                      ZoomConstraint::RoundNearest) const;