Changeset 156:c5cdf6690cdf in glemon-0.x for graph_displayer_canvas-zoom.cc
- Timestamp:
- 09/28/06 16:32:40 (18 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/glemon/trunk@2961
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
graph_displayer_canvas-zoom.cc
r89 r156 6 6 set_pixels_per_unit( 7 7 (1.0 + (double) zoom_step / 100.0) * get_pixels_per_unit()); 8 if(zoomtrack) 9 { 10 propertyChange(false, N_RADIUS); 11 } 8 12 } 9 13 … … 12 16 set_pixels_per_unit( 13 17 (1.0 - (double) zoom_step / 100.0) * get_pixels_per_unit()); 18 if(zoomtrack) 19 { 20 propertyChange(false, N_RADIUS); 21 } 14 22 } 15 23 … … 32 40 double ppu2 = (double) ah / fabs(y2 - y1); 33 41 set_pixels_per_unit((ppu1 < ppu2) ? ppu1 : ppu2); 42 43 if(zoomtrack) 44 { 45 propertyChange(false, N_RADIUS); 46 } 34 47 } 35 48 … … 38 51 updateScrollRegion(); 39 52 set_pixels_per_unit(1.0); 53 54 if(zoomtrack) 55 { 56 propertyChange(false, N_RADIUS); 57 } 40 58 } 41 59
Note: See TracChangeset
for help on using the changeset viewer.