aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/qquicktextnodeengine.cpp
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2021-10-13 16:46:40 +0200
committerShawn Rutledge <shawn.rutledge@qt.io>2021-10-20 12:31:20 +0200
commit899e3d29a70c71f4cbc0c0052b91f7f37f3aabbb (patch)
tree2a41a53a02a06ee69a9ccae0f1b5f323ca84d536 /src/quick/items/qquicktextnodeengine.cpp
parent71e6ab08b091451258834703b37f7822f6ca8abe (diff)
Tables in RichText: make outer frame symmetric
The right and bottom edges were off by the border width. Fixes: QTBUG-74335 Change-Id: I9d28c26f7c523031cfaee929c7d541978fa106a2 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
Diffstat (limited to 'src/quick/items/qquicktextnodeengine.cpp')
-rw-r--r--src/quick/items/qquicktextnodeengine.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/quick/items/qquicktextnodeengine.cpp b/src/quick/items/qquicktextnodeengine.cpp
index 4d1784a979..3358ae1ba6 100644
--- a/src/quick/items/qquicktextnodeengine.cpp
+++ b/src/quick/items/qquicktextnodeengine.cpp
@@ -706,7 +706,8 @@ void QQuickTextNodeEngine::addFrameDecorations(QTextDocument *document, QTextFra
return;
addBorder(boundingRect.adjusted(frameFormat.leftMargin(), frameFormat.topMargin(),
- -frameFormat.rightMargin(), -frameFormat.bottomMargin()),
+ -frameFormat.rightMargin() - borderWidth,
+ -frameFormat.bottomMargin() - borderWidth),
borderWidth, borderStyle, borderBrush);
if (table != nullptr) {
int rows = table->rows();