r20729 by jghali -
scribus-commit
scribus-commit at lists.scribus.net
Tue Jan 26 23:53:47 UTC 2016
Author: jghali
Date: Tue Jan 26 23:53:47 2016
New Revision: 20729
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=20729
Log:
fix uninitialized pointer field
Modified:
trunk/Scribus/scribus/ui/dcolor.cpp
Modified: trunk/Scribus/scribus/ui/dcolor.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20729&path=/trunk/Scribus/scribus/ui/dcolor.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/dcolor.cpp (original)
+++ trunk/Scribus/scribus/ui/dcolor.cpp Tue Jan 26 23:53:47 2016
@@ -40,6 +40,8 @@
PrefsManager* prefsManager = PrefsManager::instance();
bool isToolColor = prefsManager->isToolColor(colorName);
+ replaceLabel = 0;
+ replacementColData = 0;
if (haveDoc || isToolColor)
{
replaceLabel = new QLabel( tr( "Replace With:" ), this );
@@ -69,7 +71,7 @@
connect( okButton, SIGNAL( clicked() ), this, SLOT( accept() ) );
connect( cancelButton, SIGNAL( clicked() ), this, SLOT( reject() ) );
- if (haveDoc || isToolColor)
+ if (replacementColData)
connect( replacementColData, SIGNAL(activated(int)), this, SLOT( ReplaceColor(int) ) );
}
More information about the scribus-commit
mailing list