[rkward-cvs] SF.net SVN: rkward:[3426] trunk/rkward/rkward/core/rkvariable.cpp

tfry at users.sourceforge.net tfry at users.sourceforge.net
Tue Feb 8 16:01:04 UTC 2011


Revision: 3426
          http://rkward.svn.sourceforge.net/rkward/?rev=3426&view=rev
Author:   tfry
Date:     2011-02-08 16:01:04 +0000 (Tue, 08 Feb 2011)

Log Message:
-----------
Make sure _not_ to sync changes that resulted from calling setVarType from R.

Modified Paths:
--------------
    trunk/rkward/rkward/core/rkvariable.cpp

Modified: trunk/rkward/rkward/core/rkvariable.cpp
===================================================================
--- trunk/rkward/rkward/core/rkvariable.cpp	2011-02-08 16:00:06 UTC (rev 3425)
+++ trunk/rkward/rkward/core/rkvariable.cpp	2011-02-08 16:01:04 UTC (rev 3426)
@@ -102,7 +102,7 @@
 			if (new_type == RObject::DataFactor) writeValueLabels (0);		// as.factor resets the "levels"-attribute!
 
 			syncDataToR ();
-		}
+		} else discardUnsyncedChanges ();
 		lockSyncing (false);
 	} else {
 		setDataType (new_type);


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the rkward-tracker mailing list