File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
OMEdit/OMEditLIB/Annotations Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -434,11 +434,11 @@ void TextAnnotation::drawAnnotation(QPainter *painter)
434434 font.setPointSizeF (qMax (fontSizeFactor, Helper::minimumTextFontSize));
435435 painter->setFont (font);
436436 }
437- /* Try to get the elided text if calculated font size <= Helper::minimumTextFontSize
438- * OR if font size is absolute and text is not multiline.
437+ /* Try to get the elided text if calculated (( font size <= Helper::minimumTextFontSize OR if font size is absolute) AND text is not multiline).
438+ * Issue #8383 and #12754
439439 */
440440 QString textToDraw = textString;
441- if (mappedBoundingRect.width () > 1 && ((mFontSize <= 0 && painter->font ().pointSizeF () <= Helper::minimumTextFontSize) || (mFontSize > 0 && !Utilities::isMultiline (textString)) )) {
441+ if (mappedBoundingRect.width () > 1 && ((mFontSize <= 0 && painter->font ().pointSizeF () <= Helper::minimumTextFontSize) || (mFontSize > 0 )) && !Utilities::isMultiline (textString)) {
442442 QFontMetrics fontMetrics (painter->font ());
443443 textToDraw = fontMetrics.elidedText (textString, Qt::ElideRight, mappedBoundingRect.width ());
444444 // if we get "..." i.e., QChar(0x2026) as textToDraw then don't draw anything
You can’t perform that action at this time.
0 commit comments