┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/pixmapviewer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/pixmapviewer.cpp')
-rw-r--r--src/pixmapviewer.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/pixmapviewer.cpp b/src/pixmapviewer.cpp
index f535475aa..416e53f1f 100644
--- a/src/pixmapviewer.cpp
+++ b/src/pixmapviewer.cpp
@@ -77,9 +77,7 @@ void PixmapViewer::setPixmap(const QPixmap& pixmap)
void PixmapViewer::setSizeHint(const QSize& size)
{
m_sizeHint = size;
- if ((parentWidget() != 0) && (parentWidget()->layout() != 0)) {
- parentWidget()->layout()->activate();
- }
+ updateGeometry();
}
QSize PixmapViewer::sizeHint() const