Mercurial > hg > svgui
comparison layer/TimeValueLayer.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 | a34a2a25907c |
children | d79e21855aef |
comparison
equal
deleted
inserted
replaced
1314:769d7890203b | 1315:1d7921b1852f |
---|---|
1236 } | 1236 } |
1237 | 1237 |
1238 int | 1238 int |
1239 TimeValueLayer::getVerticalScaleWidth(LayerGeometryProvider *v, bool, QPainter &paint) const | 1239 TimeValueLayer::getVerticalScaleWidth(LayerGeometryProvider *v, bool, QPainter &paint) const |
1240 { | 1240 { |
1241 if (!m_model || shouldAutoAlign()) { | 1241 if (!m_model) { |
1242 return 0; | |
1243 } else if (shouldAutoAlign() && !valueExtentsMatchMine(v)) { | |
1242 return 0; | 1244 return 0; |
1243 } else if (m_plotStyle == PlotSegmentation) { | 1245 } else if (m_plotStyle == PlotSegmentation) { |
1244 if (m_verticalScale == LogScale) { | 1246 if (m_verticalScale == LogScale) { |
1245 return LogColourScale().getWidth(v, paint); | 1247 return LogColourScale().getWidth(v, paint); |
1246 } else { | 1248 } else { |