浏览代码

v.edit: Don't try to build topology when no features selected

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@60392 15284696-431f-4ddb-bdfa-cd5b030d7da7
Huidae Cho 11 年之前
父节点
当前提交
81567fc955
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      vector/v.edit/main.c

+ 2 - 2
vector/v.edit/main.c

@@ -465,8 +465,8 @@ int main(int argc, char *argv[])
     Vect_hist_command(&Map);
 
     /* build topology only if requested or if tool!=select */
-    if (!(action_mode == MODE_SELECT || params.topo->answer == 1 ||
-	 !MODE_NONE)) {
+    if (action_mode != MODE_SELECT && action_mode != MODE_NONE &&
+		    params.topo->answer != 1) {
 	Vect_build_partial(&Map, GV_BUILD_NONE);
 	Vect_build(&Map);
     }