[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    koffice/libs/koproperty (silent)
From:       Jaroslaw Staniek <js () iidea ! pl>
Date:       2006-08-31 23:00:29
Message-ID: 1157065229.216373.9110.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 579375 by staniek:

SVN_SILENT fix height & possible crash


 M  +1 -1      editor.cpp  
 M  +1 -1      editors/combobox.cpp  


--- trunk/koffice/libs/koproperty/editor.cpp #579374:579375
@@ -757,7 +757,7 @@
 
 	int y = viewportToContents(QPoint(0, itemRect(d->currentItem).y())).y();
 	QRect geometry(columnWidth(0), y, columnWidth(1) + 1, d->currentItem->height());
-	d->undoButton->resize(d->baseRowHeight, d->baseRowHeight);
+	d->undoButton->resize(d->baseRowHeight, d->currentItem->height());
 
 	updateEditorGeometry(true, show);
 
--- trunk/koffice/libs/koproperty/editors/combobox.cpp #579374:579375
@@ -82,7 +82,7 @@
 void
 ComboBox::setValue(const QVariant &value, bool emitChange)
 {
-	if (!property()->listData()) {
+	if (!property() || !property()->listData()) {
 		kopropertywarn << "ComboBox::value(): propery listData not available!" << endl;
 		return;
 	}
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic