Skip to content

Commit a1393d5

Browse files
committed
Force the repaint of widgets in order that widgets dealing whith raster and openGL widgets are correctly rendered
1 parent 4cd8a01 commit a1393d5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/DockAreaWidget.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -726,6 +726,9 @@ void CDockAreaWidget::setCurrentIndex(int index)
726726
TabBar->setCurrentIndex(index);
727727
d->ContentsLayout->setCurrentIndex(index);
728728
d->ContentsLayout->currentWidget()->show();
729+
// Force the repaint of the current widget because mix of OpenGL widgets
730+
// and Raster widgets could have not been entirely rendered
731+
d->ContentsLayout->currentWidget()->repaint();
729732
Q_EMIT currentChanged(index);
730733
}
731734

0 commit comments

Comments
 (0)