From 98ca007c6f235e6f06f1f7ed112268ff48539227 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Fri, 6 Jul 2012 16:30:32 +0200 Subject: [PATCH] Fix knotes repeated reduction in RichText mode (cherry picked from commit 27f6b882c6ab3d87b3495e5b8d149670295fb5c9) --- knotes/knote.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/knotes/knote.cpp b/knotes/knote.cpp index 006c26e5..d06df13b 100644 --- a/knotes/knote.cpp +++ b/knotes/knote.cpp @@ -1214,7 +1214,7 @@ void KNote::updateLayout() if( m_tool ) { m_tool->setGeometry( contentsRect().x(), - contentsRect().bottom() - m_tool->height() + 1, + contentsRect().bottom() - (m_tool->isHidden() ? 0 : m_tool->height()) + 1, contentsRect().width(), m_tool->height() );