changeset 30:1894b1f1326b

bug correction: when the main model is loaded after, we had the message: "Failed to regenerate layer..."
author lbajardsilogic
date Mon, 14 May 2007 15:38:08 +0000
parents d2dc3a24e24f
children 08aa244b91c6
files sv/document/Document.cpp
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sv/document/Document.cpp	Mon May 14 15:27:11 2007 +0000
+++ b/sv/document/Document.cpp	Mon May 14 15:38:08 2007 +0000
@@ -265,7 +265,8 @@
 	    continue;
 	}
 	    
-	if (m_models[model].source == oldMainModel) {
+	if ((m_models[model].source == oldMainModel) && (m_models[model].transform != "")) {
+	//if (m_models[model].source == oldMainModel) {			//correct the bug if a layer and model is load before the main model
 
 //            std::cerr << "... it uses a model derived from the old main model, regenerating" << std::endl;