Commit 62c03068 authored by Jarosław Staniek's avatar Jarosław Staniek
Browse files

Possible fix for crash. Not sure this is the definitive fix for this bug.

Thanks to Jaime Torres.

1.0/2.0: ported

svn path=/trunk/koffice/; revision=545495
parent de4396ca
......@@ -623,7 +623,7 @@ Editor::createWidgetForProperty(Property *property, bool changeWidgetProperty)
//update geometry earlier, because Widget::setValue() can depend on widget's geometry
updateEditorGeometry(d->currentItem, widget);
if(widget && !widget->property() || changeWidgetProperty)
if(widget && (!widget->property() || changeWidgetProperty))
widget->setProperty(property);
// if (!d->doNotSetFocusOnSelection) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment