Bug 428176 - Printing GMF diagram does not display clearly per scale
Signed-off-by: Vikas Chandra <Vikas.Chandra@in.ibm.com>
diff --git a/org.eclipse.gmf.runtime.draw2d.ui/src/org/eclipse/gmf/runtime/draw2d/ui/internal/graphics/ScaledGraphics.java b/org.eclipse.gmf.runtime.draw2d.ui/src/org/eclipse/gmf/runtime/draw2d/ui/internal/graphics/ScaledGraphics.java
index 6e7c17c..459b42f 100644
--- a/org.eclipse.gmf.runtime.draw2d.ui/src/org/eclipse/gmf/runtime/draw2d/ui/internal/graphics/ScaledGraphics.java
+++ b/org.eclipse.gmf.runtime.draw2d.ui/src/org/eclipse/gmf/runtime/draw2d/ui/internal/graphics/ScaledGraphics.java
@@ -1,5 +1,5 @@
/******************************************************************************
- * Copyright (c) 2000, 2009 IBM Corporation and others.
+ * Copyright (c) 2000, 2015 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -1042,8 +1042,8 @@
targetCache.height = metric.getHeight() - metric.getDescent();
}
return new Point(((int)(Math.floor((x * zoom) + fractionalX))),
- (int)(Math.floor((y + localCache.height - 1) * zoom
- - targetCache.height + 1 + fractionalY)));
+ (int)(Math.floor((y /*+ localCache.height - 1 */) * zoom
+ /*- targetCache.height + 1 */ + fractionalY)));
}
protected Graphics getGraphics() {