changeset 861:59a22f3bf86d

Do not draw the model time extents if the top layer does not have time as its x axis (fixing #1057)
author Chris Cannam
date Thu, 11 Sep 2014 13:53:41 +0100
parents d282967236d5
children 1986c9b0d9c3 7c75fae51409
files view/Pane.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/view/Pane.cpp	Wed Sep 03 13:12:38 2014 +0100
+++ b/view/Pane.cpp	Thu Sep 11 13:53:41 2014 +0100
@@ -469,7 +469,7 @@
 
     m_scaleWidth = 0;
 
-    if (workModel) {
+    if (workModel && hasTopLayerTimeXAxis()) {
         drawModelTimeExtents(r, paint, workModel);
     }