xcfw/src/xcfwengine.cpp
changeset 3 ff572005ac23
parent 0 79c6a41cd166
child 74 edd621764147
--- a/xcfw/src/xcfwengine.cpp	Mon Jan 18 20:32:13 2010 +0200
+++ b/xcfw/src/xcfwengine.cpp	Tue Jan 26 12:11:15 2010 +0200
@@ -1383,8 +1383,12 @@
                 }                
             }
         }
-    //Store DTD name to tree, so it is available at save.
-    iTree->SetDTDNameL( iDTD->Des() );
+    
+    if ( iDTD )
+        {
+        //Store DTD name to tree, so it is available at save.
+        iTree->SetDTDNameL( iDTD->Des() );
+        }
     }
 
 //  End of File