summaryrefslogtreecommitdiffstats
path: root/src/widgets/styles/qplastiquestyle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/widgets/styles/qplastiquestyle.cpp')
-rw-r--r--src/widgets/styles/qplastiquestyle.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/widgets/styles/qplastiquestyle.cpp b/src/widgets/styles/qplastiquestyle.cpp
index 278ec2b9cb..799bc95fdd 100644
--- a/src/widgets/styles/qplastiquestyle.cpp
+++ b/src/widgets/styles/qplastiquestyle.cpp
@@ -929,14 +929,12 @@ static QString elliditide(const QString &text, const QFontMetrics &fontMetrics,
int width = fontMetrics.width(leftHalf + ellipsis + rightHalf);
if (width < rect.width()) {
title = leftHalf + ellipsis + rightHalf;
- width = width;
break;
}
rightHalf.remove(0, 1);
width = fontMetrics.width(leftHalf + ellipsis + rightHalf);
if (width < rect.width()) {
title = leftHalf + ellipsis + rightHalf;
- width = width;
break;
}
}