// label width
params_.labelWidthString(qstring_to_ucs4(labelWidth->text()));
- // indendation
+ // indentation
params_.noindent(!indentCB->isChecked());
dispatchParams();
if (haveMultiParSelection()) {
// FIXME: in case of multi-paragraph selection, it would be nice to
// initialise the parameters that are common to all paragraphs.
- static ParagraphParameters empty;
+ static ParagraphParameters const empty;
return empty;
}
return bufferview()->cursor().innerParagraph().params();
bool GuiParagraph::canIndent() const
{
- return buffer().params().paragraph_separation
- == BufferParams::ParagraphIndentSeparation;
+ Layout const lay = bufferview()->cursor().innerParagraph().layout();
+ if (buffer().params().paragraph_separation
+ == BufferParams::ParagraphIndentSeparation)
+ return (lay.toggle_indent != ITOGGLE_NEVER);
+ return (lay.toggle_indent == ITOGGLE_ALWAYS);
}