Commit 765fdbcd authored by Dmitry Kazakov's avatar Dmitry Kazakov
Browse files

Remove extra vertical margin from the floating message

The real margin is added a couple of lines below
parent 66c4670e
......@@ -199,7 +199,6 @@ QRect KisFloatingMessage::determineMetrics( const int M )
// The osd cannot be larger than the screen
QRect rect = fontMetrics().boundingRect(0, 0, max.width() - image.width(), max.height(),
Qt::AlignCenter | Qt::TextWordWrap, m_message);
rect.setHeight(rect.height() + M + M);
if (!m_icon.isNull()) {
const int availableWidth = max.width() - rect.width() - M; //WILL be >= (minImageSize.width() - M)
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