index 804a403f6dab0d73db055963b6137a05aba0379f..4b1c2a5f80397a196800f6c627ae74322fbe7a11 100644 (file)
void
RegisteredScalarUnit::setValue (double val)
{
- _widget->setValue (val);
+ if (_widget)
+ _widget->setValue (val);
}
void
void
RegisteredScalar::setValue (double val)
{
- _widget->setValue (val);
+ if (_widget)
+ _widget->setValue (val);
}
void
@@ -483,9 +485,15 @@ const Glib::ustring& key, Registry& wr, Inkscape::XML::Node* repr_in, SPDocument
void
RegisteredRadioButtonPair::setValue (bool second)
{
+ if (!_rb1 || !_rb2)
+ return;
+
setProgrammatically = true;
- if (second) _rb2->set_active();
- else _rb1->set_active();
+ if (second) {
+ _rb2->set_active();
+ } else {
+ _rb1->set_active();
+ }
}
void
void
RegisteredPoint::setValue (double xval, double yval)
{
- _widget->setValue(xval, yval);
+ if (_widget)
+ _widget->setValue(xval, yval);
}
void
void
RegisteredRandom::setValue (double val, long startseed)
{
+ if (!_widget)
+ return;
+
_widget->setValue (val);
_widget->setStartSeed(startseed);
}