Gui: cache color bar width to avoid to compute it for every resize of the canvas

This commit is contained in:
wmayer
2022-06-06 19:11:00 +02:00
parent 721f253c59
commit 3cccd4d69e
4 changed files with 20 additions and 1 deletions

View File

@@ -108,6 +108,8 @@ void SoFCColorGradient::setMarkerLabel(const SoMFString& label)
labels->addChild(text2);
}
}
setModified();
}
void SoFCColorGradient::setViewportSize(const SbVec2s& size)