void PropertiesPalette_Text::updateStyle(const ParagraphStyle& newCurrent) { if (!m_ScMW || m_ScMW->scriptIsRunning()) return; const CharStyle& charStyle = newCurrent.charStyle(); advancedWidgets->updateStyle(newCurrent); colorWidgets->updateStyle(newCurrent); optMargins->updateStyle(newCurrent); orphanBox->updateStyle (newCurrent); parEffectWidgets->updateStyle(newCurrent); showFontFace(charStyle.font().scName()); showFontSize(charStyle.fontSize()); bool tmp = m_haveItem; m_haveItem = false; setupLineSpacingSpinbox(newCurrent.lineSpacingMode(), newCurrent.lineSpacing()); lineSpacingModeCombo->setCurrentIndex(newCurrent.lineSpacingMode()); textAlignment->setStyle(newCurrent.alignment()); m_haveItem = tmp; }