Commit 981ddcd2 authored by Stefan Gerlach's avatar Stefan Gerlach

fixed random line breaks in text labels

parent 7f7219c4
......@@ -88,9 +88,14 @@ void TextLabel::init() {
d->textWrapper.teXUsed = group.readEntry("TeXUsed", false);
d->teXFontSize = group.readEntry("TeXFontSize", 12);
d->teXFontColor = group.readEntry("TeXFontColor", QColor(Qt::black));
d->staticText.setTextFormat(Qt::RichText);
d->rotationAngle = group.readEntry("Rotation", 0.0);
d->staticText.setTextFormat(Qt::RichText);
// explicitly set no wrap mode for text label to avoid unnecessary line breaks
QTextOption textOption;
textOption.setWrapMode(QTextOption::NoWrap);
d->staticText.setTextOption(textOption);
//position and alignment relevant properties, dependent on the actual type
if (m_type == PlotTitle || m_type == PlotLegendTitle) {
d->position.horizontalPosition = (HorizontalPosition) group.readEntry("PositionX", (int)TextLabel::hPositionCenter);
......
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