Commit 9cfd5cf7 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Minor optimization

parent 3b68cdf4
Pipeline #80594 passed with stage
in 7 minutes and 42 seconds
...@@ -608,20 +608,20 @@ void MarkupDirector::processOpeningElements(const QTextBlock::iterator &it) ...@@ -608,20 +608,20 @@ void MarkupDirector::processOpeningElements(const QTextBlock::iterator &it)
m_builder->beginStrikeout(); m_builder->beginStrikeout();
break; break;
case SpanFontPointSize: case SpanFontPointSize:
m_builder->beginFontPointSize(fragmentFormat.font().pointSize());
d->m_openFontPointSize = fragmentFormat.font().pointSize(); d->m_openFontPointSize = fragmentFormat.font().pointSize();
m_builder->beginFontPointSize(d->m_openFontPointSize);
break; break;
case SpanFontFamily: case SpanFontFamily:
m_builder->beginFontFamily(fragmentFormat.fontFamily());
d->m_openFontFamily = fragmentFormat.fontFamily(); d->m_openFontFamily = fragmentFormat.fontFamily();
m_builder->beginFontFamily(d->m_openFontFamily);
break; break;
case SpanBackground: case SpanBackground:
m_builder->beginBackground(fragmentFormat.background());
d->m_openBackground = fragmentFormat.background(); d->m_openBackground = fragmentFormat.background();
m_builder->beginBackground(d->m_openBackground);
break; break;
case SpanForeground: case SpanForeground:
m_builder->beginForeground(fragmentFormat.foreground());
d->m_openForeground = fragmentFormat.foreground(); d->m_openForeground = fragmentFormat.foreground();
m_builder->beginForeground(d->m_openForeground);
break; break;
case Anchor: { case Anchor: {
// TODO: Multiple anchor names here. // TODO: Multiple anchor names here.
......
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