Gui: add SoColorBarLabel as workaround for a Coin3D bug

This commit is contained in:
wmayer
2022-06-07 19:42:04 +02:00
parent 80982cf87b
commit b9db257558
4 changed files with 49 additions and 2 deletions

View File

@@ -35,6 +35,7 @@
#endif
#include "SoFCColorGradient.h"
#include "SoTextLabel.h"
#include "DlgSettingsColorGradientImp.h"
#include "MainWindow.h"
#include "MDIView.h"
@@ -98,7 +99,7 @@ void SoFCColorGradient::setMarkerLabel(const SoMFString& label)
for (int i = 0; i < num; i++) {
SoTransform* trans = new SoTransform;
SoBaseColor* color = new SoBaseColor;
SoText2 * text2 = new SoText2;
SoText2 * text2 = new SoColorBarLabel;
trans->translation.setValue(0, -fStep, 0);
color->rgb.setValue(0, 0, 0);