[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [calligra] plugins/pictureshape: Repaint picture shape is after it is inserted
From: Thorsten Zachmann <t.zachmann () zagge ! de>
Date: 2012-09-01 4:52:47
Message-ID: 20120901045247.411CDA60C4 () git ! kde ! org
[Download RAW message or body]
Git commit 9190097efde78cfa4848392bd5a23cf0f8a4ec8e by Thorsten Zachmann.
Committed on 01/09/2012 at 06:49.
Pushed by zachmann into branch 'master'.
Repaint picture shape is after it is inserted
Be sure to trigger a repaint after a new image is inserted. This fixes
the problem that the image is not visible directly on insert in karbon.
BUG: 305548
M +2 -0 plugins/pictureshape/PictureShapeConfigWidget.cpp
http://commits.kde.org/calligra/9190097efde78cfa4848392bd5a23cf0f8a4ec8e
diff --git a/plugins/pictureshape/PictureShapeConfigWidget.cpp b/plugins/pi=
ctureshape/PictureShapeConfigWidget.cpp
index 40332a5..b4fb1e3 100644
--- a/plugins/pictureshape/PictureShapeConfigWidget.cpp
+++ b/plugins/pictureshape/PictureShapeConfigWidget.cpp
@@ -45,6 +45,8 @@ void LoadWaiter::setImageData(KJob *job)
if (qFuzzyCompare(m_pictureShape->size().width(), 50.0)) {
m_pictureShape->setSize(data->imageSize());
}
+ // trigger repaint as the userData was changed
+ m_pictureShape->update();
}
}
deleteLater();
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic