Commit be4200a9 authored by Thomas Zander's avatar Thomas Zander

Also copy the textlist refence on creation of the listStyle

svn path=/trunk/koffice/; revision=662484
parent 1baf38f7
......@@ -19,10 +19,8 @@
#include "KoListStyle.h"
#include "KoListLevelProperties.h"
// #include "Styles_p.h"
#include "KoTextBlockData.h"
// #include <QTextBlock>
#include <QTextCursor>
//#include <KDebug>
......@@ -195,5 +193,6 @@ KoListStyle* KoListStyle::fromTextList(QTextList *list) {
KoListStyle *answer = new KoListStyle();
KoListLevelProperties llp = KoListLevelProperties::fromTextList(list);
answer->setLevel(llp);
answer->d->setTextList(llp.level(), list->document(), list);
return answer;
}
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