[rkward-cvs] SF.net SVN: rkward:[2992] trunk/rkward/rkward/windows/rkcommandeditorwindow .cpp
tfry at users.sourceforge.net
tfry at users.sourceforge.net
Fri Sep 3 15:36:33 UTC 2010
Revision: 2992
http://rkward.svn.sourceforge.net/rkward/?rev=2992&view=rev
Author: tfry
Date: 2010-09-03 15:36:33 +0000 (Fri, 03 Sep 2010)
Log Message:
-----------
MovingRange has no isValid()
Modified Paths:
--------------
trunk/rkward/rkward/windows/rkcommandeditorwindow.cpp
Modified: trunk/rkward/rkward/windows/rkcommandeditorwindow.cpp
===================================================================
--- trunk/rkward/rkward/windows/rkcommandeditorwindow.cpp 2010-09-03 15:31:28 UTC (rev 2991)
+++ trunk/rkward/rkward/windows/rkcommandeditorwindow.cpp 2010-09-03 15:36:33 UTC (rev 2992)
@@ -652,7 +652,11 @@
for (int i = 0; i < block_records.size (); ++i) {
if (block_records[i].active) {
// TODO: do we need to check whether the range was deleted? Does the katepart do such evil things?
+#if KDE_IS_VERSION(4,5,0)
+ if (block_records[i].range->isEmpty ()) {
+#else
if (!block_records[i].range->isValid () || block_records[i].range->isEmpty ()) {
+#endif
removeBlock (i, true);
}
}
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