summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2012-07-06 16:30:32 +0200
committerSlávek Banko <slavek.banko@axis.cz>2012-07-06 16:33:57 +0200
commit98ca007c6f235e6f06f1f7ed112268ff48539227 (patch)
tree699a8bb1e05278fb66348db7e148798aa340ea44
parent8959375f438fcae02e6a6f3fbb148ed6d8d720bc (diff)
downloadtdepim-98ca007c6f235e6f06f1f7ed112268ff48539227.tar.gz
tdepim-98ca007c6f235e6f06f1f7ed112268ff48539227.zip
Fix knotes repeated reduction in RichText mode
(cherry picked from commit 27f6b882c6ab3d87b3495e5b8d149670295fb5c9)
-rw-r--r--knotes/knote.cpp2
1 files changed, 1 insertions, 1 deletions
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()
);