[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [calligra/calligra/2.5] plugins/pictureshape: Repaint picture shape is after it is inserted
From:       Thorsten Zachmann <t.zachmann () zagge ! de>
Date:       2012-09-01 5:30:25
Message-ID: 20120901053025.41624A6094 () git ! kde ! org
[Download RAW message or body]

Git commit 541fde137c0d1835160cf9b05b37cf42c41333e9 by Thorsten Zachmann.
Committed on 01/09/2012 at 06:49.
Pushed by zachmann into branch 'calligra/2.5'.

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
(cherry picked from commit 9190097efde78cfa4848392bd5a23cf0f8a4ec8e)

M  +2    -0    plugins/pictureshape/PictureShapeConfigWidget.cpp

http://commits.kde.org/calligra/541fde137c0d1835160cf9b05b37cf42c41333e9

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