~tapaal-contributor/tapaal/weight-values-fix-1770637

« back to all changes in this revision

Viewing changes to src/pipe/gui/DrawingSurfaceImpl.java

merged branch lp:~tapaal-contributor/tapaal/ctl-query-fix-1540367

Show diffs side-by-side

added added

removed removed

Lines of Context:
476
476
        // This function should always be called after a change in zoom.
477
477
        public void zoomTo(Point point) {
478
478
 
479
 
                int zoomPercent = zoomControl.getPercent();
 
479
                int zoomPercent = getZoom();
480
480
 
481
481
                JViewport viewport = (JViewport) getParent();           
482
482
 
485
485
                //Update elements in the view to zoom, i.e resize graphical elements and reposition them, all done in zoomUpdate.
486
486
                for (int i = 0; i < children.length; i++) {
487
487
                        if (children[i] instanceof Zoomable) {
488
 
                                ((Zoomable) children[i]).zoomUpdate(zoomControl.getPercent());
 
488
                                ((Zoomable) children[i]).zoomUpdate(zoomPercent);
489
489
                        }
490
490
                }
491
491