Commits

Anonymous committed 61345a8

ooo33gsl02: #i112873# fix a SNAFU

Comments (0)

Files changed (1)

vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx

                                         const ImplControlValue& aValue,
                                         const OUString& rCaption )
 {
-    OSL_ASSERT( aValue.getType() == CTRL_SPINBUTTONS );
 	GdkPixmap	*		pixmap;
 	Rectangle			pixmapRect;
 	GtkStateType		stateType;
 	GtkShadowType		shadowType;
-	const SpinbuttonValue *	pSpinVal = static_cast<const SpinbuttonValue *>(&aValue);
+	const SpinbuttonValue *	pSpinVal = (aValue.getType() == CTRL_SPINBUTTONS) ? static_cast<const SpinbuttonValue *>(&aValue) : NULL;
 	Rectangle			upBtnRect;
 	ControlPart		upBtnPart = PART_BUTTON_UP;
 	ControlState		upBtnState = CTRL_STATE_ENABLED;