Commit 3eae3efe authored by Gopalakrishna Bhat A's avatar Gopalakrishna Bhat A

Fix for not being able to add prefix and suffixes to list items through the UI

parent 212123a1
......@@ -52,10 +52,15 @@ ChangeListCommand::ChangeListCommand(const QTextCursor &cursor, const KoListLeve
KoListLevelProperties llp;
llp.setLevel(lev);
llp.setStyle(style);
llp.setListItemPrefix(levelProperties.listItemPrefix());
llp.setListItemSuffix(levelProperties.listItemSuffix());
if (KoListStyle::isNumberingStyle(style)) {
llp.setStartValue(1);
llp.setRelativeBulletSize(100); //we take the default value for numbering bullets as 100
llp.setListItemSuffix(".");
if (llp.listItemSuffix().isEmpty()) {
llp.setListItemSuffix(".");
}
}
else if (style == KoListStyle::CustomCharItem) {
llp.setRelativeBulletSize(100); //we take the default value for numbering bullets as 100
......
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