void GuiParagraph::applyView()
{
void GuiParagraph::applyView()
{
- if (haveMultiParSelection()) {
- // FIXME: in case of multi-paragraph selection, it would be nice to
- // initialise the parameters that are common to all paragraphs.
- params_ = ParagraphParameters();
- } else {
- params_ = bufferview()->cursor().innerParagraph().params();
- }
params_.align(getAlignmentFromDialog());
params_.align(getAlignmentFromDialog());
if (haveMultiParSelection()) {
// FIXME: in case of multi-paragraph selection, it would be nice to
// initialise the parameters that are common to all paragraphs.
if (haveMultiParSelection()) {
// FIXME: in case of multi-paragraph selection, it would be nice to
// initialise the parameters that are common to all paragraphs.
- params_ = ParagraphParameters();
- return params_;
+ static ParagraphParameters empty;
+ return empty;
}
return bufferview()->cursor().innerParagraph().params();
}
}
return bufferview()->cursor().innerParagraph().params();
}
///
QString alignDefaultLabel_;
///
///
QString alignDefaultLabel_;
///
- mutable ParagraphParameters params_;
+ ParagraphParameters params_;
};
} // namespace frontend
};
} // namespace frontend