#include "buffer.h"
#include "BufferView.h"
+#include "Lsstream.h"
#include "gettext.h"
#include "paragraph.h"
#include "lyxtext.h"
+#include "Lsstream.h"
+
#include "frontends/LyXView.h"
#include "support/lstrings.h"
void setParagraphParams(BufferView & bv, string const & data)
{
- istringstream is(data);
+ istringstream is(STRCONV(data));
LyXLex lex(0,0);
lex.setStream(is);
params.noindent());
// Actually apply these settings
- bv.update(text,
- BufferView::SELECT |
- BufferView::FITCUR |
- BufferView::CHANGE);
-
- bv.buffer()->markDirty();
+ bv.update(text, BufferView::SELECT);
bv.owner()->message(_("Paragraph layout set"));
}
os << "\\aligndefault " << layout->align << '\n';
/// is paragraph in inset
- os << "\\ininset " << par.inInset() << '\n';
+ os << "\\ininset " << (par.inInset()?1:0) << '\n';
- data = os.str();
+ data = STRCONV(os.str());
}