mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[interactive_curve_view_range] Missing refresh
The normalized status would not be refreshed after a call to setDefault triggered by InteractiveCurveViewController::viewWillAppear. Change-Id: I923ef3ca0585dbcc1f32b992d7dd1f4a3a206532
This commit is contained in:
committed by
Émilie Feral
parent
bcb4b3095b
commit
43f50b7b2d
@@ -151,6 +151,7 @@ void InteractiveCurveViewController::viewWillAppear() {
|
||||
|
||||
if (m_interactiveRange->zoomAuto()) {
|
||||
m_interactiveRange->setDefault();
|
||||
m_interactiveRange->checkForNormalizedRange();
|
||||
}
|
||||
|
||||
/* Warning: init cursor parameter before reloading banner view. Indeed,
|
||||
|
||||
@@ -194,7 +194,7 @@ void InteractiveCurveViewRange::panToMakePointVisible(float x, float y, float to
|
||||
}
|
||||
|
||||
void InteractiveCurveViewRange::checkForNormalizedRange() {
|
||||
m_zoomNormalize = isOrthonormal();
|
||||
setZoomNormalize(isOrthonormal());
|
||||
}
|
||||
|
||||
bool InteractiveCurveViewRange::isOrthonormal(float tolerance) const {
|
||||
|
||||
Reference in New Issue
Block a user