r20733 by jghali -

scribus-commit scribus-commit at lists.scribus.net
Wed Jan 27 00:15:18 UTC 2016


Author: jghali
Date: Wed Jan 27 00:15:18 2016
New Revision: 20733

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=20733
Log:
fix uninitialized pointer field <coverity>

Modified:
    trunk/Scribus/scribus/ui/proptree.cpp

Modified: trunk/Scribus/scribus/ui/proptree.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20733&path=/trunk/Scribus/scribus/ui/proptree.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/proptree.cpp	(original)
+++ trunk/Scribus/scribus/ui/proptree.cpp	Wed Jan 27 00:15:18 2016
@@ -40,13 +40,14 @@
 PropTreeItemDelegate::PropTreeItemDelegate(PropTreeWidget *parent) : QItemDelegate(parent)
 {
 	m_parent = parent;
+	m_edit = 0;
 }
 
 void PropTreeItemDelegate::paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
 {
 	QStyleOptionViewItem itemOpts = option;
 	itemOpts.state &= ~QStyle::State_HasFocus;
-	PropTreeItem* item = (PropTreeItem*)m_parent->indexToItem(index);
+	PropTreeItem* item = (PropTreeItem*) m_parent->indexToItem(index);
 	if ((index.column() == 1) && (item->m_type == PropTreeItem::CheckBox) && !(option.state & QStyle::State_Editing))
 	{
 		QStyleOptionButton buttonOption;




More information about the scribus-commit mailing list