[GRASSLIST:10433] i.vpoints can't zoom both raster and vector
Carlos "Guâno" Grohmann
carlos.grohmann at gmail.com
Mon Feb 20 10:13:28 EST 2006
Skipped content of type multipart/alternative-------------- next part --------------
? OBJ.i686-pc-linux-gnu
? zoom_box.diff
Index: zoom_box.c
===================================================================
RCS file: /home/grass/grassrepository/grass6/imagery/i.vpoints/zoom_box.c,v
retrieving revision 2.1
diff -u -r2.1 zoom_box.c
--- zoom_box.c 9 Feb 2006 03:08:53 -0000 2.1
+++ zoom_box.c 16 Feb 2006 22:37:48 -0000
@@ -193,15 +193,16 @@
Configure_view (zoom_view, pick_view->cell.name, pick_view->cell.mapset,
pick_view->cell.ns_res, pick_view->cell.ew_res);
- if(target_flag)
- {
+ if(target_flag) {
if(cellmap_present)
drawcell (zoom_view,0);
zoomvect(zoom_view);
VIEW_MAP2_ZOOM->cell.configured = 1;
- }
- else
- drawcell (zoom_view,0);
+ }
+ else {
+ if(cellmap_present)
+ drawcell (zoom_view,0);
+ }
select_current_env();
display_points(1);
More information about the grass-user
mailing list