From: Jon A. Cruz Date: Fri, 19 Mar 2010 06:50:27 +0000 (-0700) Subject: Fixed missing palette when using file open on a new document. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2b25c31a243d45690d7e4db690fe2f50a3c7bbc4;p=inkscape.git Fixed missing palette when using file open on a new document. --- diff --git a/src/ui/dialog/swatches.cpp b/src/ui/dialog/swatches.cpp index 76ceb1514..6f013f4f3 100644 --- a/src/ui/dialog/swatches.cpp +++ b/src/ui/dialog/swatches.cpp @@ -610,7 +610,6 @@ void SwatchesPanel::setDesktop( SPDesktop* desktop ) _documentConnection = desktop->connectDocumentReplaced( slot2 ); _setDocument( desktop->doc() ); - handleGradientsChange( desktop->doc() ); } else { _setDocument(0); } @@ -709,6 +708,7 @@ void SwatchesPanel::_setDocument( SPDocument *document ) if ( document != _currentDocument ) { _trackDocument(this, document); _currentDocument = document; + handleGradientsChange( document ); } }