[Uml-devel] kdesdk/umbrello/umbrello/codegenerators

Brian Thomas thomas at mail630.gsfc.nasa.gov
Tue Sep 16 15:22:14 UTC 2003


CVS commit by thomas: 

bug fix: prevent adding new text blocks with each call to updateContent


  M +7 -3      javaantcodedocument.cpp   1.5


--- kdesdk/umbrello/umbrello/codegenerators/javaantcodedocument.cpp  #1.4:1.5
@@ -93,7 +93,11 @@ void JavaANTCodeDocument::updateContent(
         // FIX : fill in more content based on classes
         // which exist
-        CodeBlock * block = newCodeBlock();
+        CodeBlock * block = 0;
+        if( !(block = findTextBlockByTag("title")))
+        {
+                block = newCodeBlock();
         block->setText("<!-- java ANT build document -->");
         addTextBlock(block);
+        }
 }
 






More information about the umbrello-devel mailing list