Fix result reporting in "add borders"

Sun, 30 Aug 2015 04:45:16 +0300

author
Teemu Piippo <crimsondusk64@gmail.com>
date
Sun, 30 Aug 2015 04:45:16 +0300
changeset 961
f81445a7abde
parent 960
9fa260f4386e
child 962
a4b463a7ee82

Fix result reporting in "add borders"

src/actionsEdit.cpp file | annotate | diff | comparison | revisions
--- a/src/actionsEdit.cpp	Sun Aug 30 04:43:14 2015 +0300
+++ b/src/actionsEdit.cpp	Sun Aug 30 04:45:16 2015 +0300
@@ -284,9 +284,8 @@
 
 			long idx = obj->lineNumber() + i + 1;
 			CurrentDocument()->insertObj (idx, lines[i]);
+			++num;
 		}
-
-		num += countof (lines);
 	}
 
 	print (tr ("Added %1 border lines"), num);

mercurial