Skip to content

Commit 5a8575f

Browse files
author
mmassing
committedMay 24, 2010
georeferencer: fix crash which occured when adding GCPs after the widget
docking has been disabled. git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@13560 c8812cc2-4d05-0410-92ff-de0c093fc19c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed
 

‎src/plugins/georeferencer/qgsgeorefplugingui.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,9 @@ void QgsGeorefPluginGui::dockThisWindow( bool dock )
117117
{
118118
if ( mDock )
119119
{
120-
setParent( 0 );
120+
setParent( mIface->mainWindow(), Qt::Window );
121121
show();
122+
122123
mIface->removeDockWidget( mDock );
123124
mDock->setWidget( 0 );
124125
delete mDock;

‎src/plugins/georeferencer/qgsmapcoordsdialog.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,8 @@ void QgsMapCoordsDialog::setToolEmitPoint( bool isEnable )
134134
if ( isEnable )
135135
{
136136
parentWidget()->showMinimized();
137+
138+
assert( parentWidget()->parentWidget() != 0 );
137139
parentWidget()->parentWidget()->activateWindow();
138140
parentWidget()->parentWidget()->raise();
139141

0 commit comments

Comments
 (0)
Please sign in to comment.