Changeset View
Changeset View
Standalone View
Standalone View
libs/flake/text/KoSvgTextShapeMarkupConverter.cpp
Show First 20 Lines • Show All 613 Lines • ▼ Show 20 Line(s) | 613 | { | |||
---|---|---|---|---|---|
614 | const QString blockStyleString = style(blockCharFormatDiff, blockFormatDiff); | 614 | const QString blockStyleString = style(blockCharFormatDiff, blockFormatDiff); | ||
615 | if (!blockStyleString.isEmpty()) { | 615 | if (!blockStyleString.isEmpty()) { | ||
616 | svgWriter.writeAttribute("style", blockStyleString); | 616 | svgWriter.writeAttribute("style", blockStyleString); | ||
617 | } | 617 | } | ||
618 | } | 618 | } | ||
619 | 619 | | |||
620 | /** | 620 | /** | ||
621 | * The alignment rule will be inverted while rendering the text in the text shape | 621 | * The alignment rule will be inverted while rendering the text in the text shape | ||
622 | * (accordign to the standard the alignment is defined not by "left" or "right", | 622 | * (according to the standard the alignment is defined not by "left" or "right", | ||
623 | * but by "start" and "end", which inverts for rtl text) | 623 | * but by "start" and "end", which inverts for rtl text) | ||
624 | */ | 624 | */ | ||
625 | Qt::Alignment blockAlignment = block.blockFormat().alignment(); | 625 | Qt::Alignment blockAlignment = block.blockFormat().alignment(); | ||
626 | if (isRightToLeft) { | 626 | if (isRightToLeft) { | ||
627 | if (blockAlignment & Qt::AlignLeft) { | 627 | if (blockAlignment & Qt::AlignLeft) { | ||
628 | blockAlignment &= ~Qt::AlignLeft; | 628 | blockAlignment &= ~Qt::AlignLeft; | ||
629 | blockAlignment |= Qt::AlignRight; | 629 | blockAlignment |= Qt::AlignRight; | ||
630 | } else if (blockAlignment & Qt::AlignRight) { | 630 | } else if (blockAlignment & Qt::AlignRight) { | ||
▲ Show 20 Lines • Show All 614 Lines • Show Last 20 Lines |