[rkward-cvs] SF.net SVN: rkward:[2875] trunk/rkward/rkward/dataeditor/rkvareditmodel.cpp
tfry at users.sourceforge.net
tfry at users.sourceforge.net
Mon Jun 14 12:28:26 UTC 2010
Revision: 2875
http://rkward.svn.sourceforge.net/rkward/?rev=2875&view=rev
Author: tfry
Date: 2010-06-14 12:28:26 +0000 (Mon, 14 Jun 2010)
Log Message:
-----------
Start adding (unfinished, untested) support for editing rownames.
Add rkrownames.cpp rkrownames.h, missing from commit #2871.
Some more cleanups in RKVariable-API.
Modified Paths:
--------------
trunk/rkward/rkward/dataeditor/rkvareditmodel.cpp
Modified: trunk/rkward/rkward/dataeditor/rkvareditmodel.cpp
===================================================================
--- trunk/rkward/rkward/dataeditor/rkvareditmodel.cpp 2010-06-14 12:28:08 UTC (rev 2874)
+++ trunk/rkward/rkward/dataeditor/rkvareditmodel.cpp 2010-06-14 12:28:26 UTC (rev 2875)
@@ -385,11 +385,11 @@
int tcol = 0;
for (int col = left; col <= right; ++col) {
RKVariable* var = objects[col];
- QString* data = text.getColumn (tcol);
- RK_ASSERT (data);
- var->setCharacter (top, bottom, data);
- delete [] data; // hm, why doesn't RKVariable take ownership?
- ++tcol;
+ int trow = 0;
+ for (int row = top; row <= bottom; ++row) {
+ var->setText (row, text.getText (trow, tcol));
+ ++trow;
+ }
}
}
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