FYI: Small bug fixed

Milo Hoffman Milo at NG-Projekt.ORG
Fri Jan 24 22:21:06 UTC 2003


Hi,
could you please have a look at this again; seems it produces much 
unneccessary whitespace when there is no baseclass at all.

Sascha "Milo" Cunz

CVS commit by cunz: 

Fixed crash when creating new class without baseclass


  M +2 -1      cppnewclassdlg.cpp   1.19


--- kdevelop/parts/cppsupport/cppnewclassdlg.cpp  #1.18:1.19
@@ -503,4 +503,5 @@ void CppNewClassDialog::ClassGenerator::
   classIntf.replace(QRegExp("\\$DOC\\$"), doc);
   classIntf.replace(QRegExp("\\$CLASSNAME\\$"), className);
+  if (dlg.baseclasses_view->childCount() > 0) 
   classIntf.replace(QRegExp("\\$BASECLASS\\$"), 
dlg.baseclasses_view->firstChild()->text(0));
   classIntf.replace(QRegExp("\\$INHERITANCE\\$"), inheritance);




More information about the KDevelop-devel mailing list