summaryrefslogtreecommitdiffstats
path: root/bundles
diff options
context:
space:
mode:
authorSilenio Quarti <silenio>2005-04-28 13:43:58 +0000
committerSilenio Quarti <silenio>2005-04-28 13:43:58 +0000
commit672f524d2e057cf6048fc84508c7310614b571d7 (patch)
treefa1f317ae3da9e6255381a1e33a499a1c92b1790 /bundles
parenta81e8b7e12659ea77cd28eff0ac82ac6b18512df (diff)
downloadeclipse.platform.swt-672f524d2e057cf6048fc84508c7310614b571d7.tar.gz
eclipse.platform.swt-672f524d2e057cf6048fc84508c7310614b571d7.tar.xz
eclipse.platform.swt-672f524d2e057cf6048fc84508c7310614b571d7.zip
*** empty log message ***
Diffstat (limited to 'bundles')
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GC.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GC.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GC.java
index 4b64b7ea6f..164fadb12a 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GC.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GC.java
@@ -1255,8 +1255,8 @@ public void drawOval (int x, int y, int width, int height) {
*/
public void drawPath (Path path) {
if (handle == 0) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED);
- if (path == null) SWT.error(SWT.ERROR_NULL_ARGUMENT); /* McQ added a missing null check. */
- if (path.handle == 0) SWT.error(SWT.ERROR_INVALID_ARGUMENT); /* McQ says "Should be path.isDisposed()?" */
+ if (path == null) SWT.error(SWT.ERROR_NULL_ARGUMENT);
+ if (path.handle == 0) SWT.error(SWT.ERROR_INVALID_ARGUMENT);
initGdip(true, false);
Gdip.Graphics_DrawPath(data.gdipGraphics, data.gdipPen, path.handle);
}
@@ -2094,6 +2094,7 @@ public void fillOval (int x, int y, int width, int height) {
*/
public void fillPath (Path path) {
if (handle == 0) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED);
+ if (path == null) SWT.error(SWT.ERROR_NULL_ARGUMENT);
if (path.handle == 0) SWT.error(SWT.ERROR_INVALID_ARGUMENT);
initGdip(false, true);
int mode = OS.GetPolyFillMode(handle) == OS.WINDING ? Gdip.FillModeWinding : Gdip.FillModeAlternate;
@@ -3738,12 +3739,13 @@ public void setTextAntialias(int antialias) {
}
/**
- * Sets the transform that is currently being used by the receiver.
+ * Sets the transform that is currently being used by the receiver. If
+ * the argument is <code>null</code>, the current transform is set to
+ * the identity transform.
*
* @param transform the transform to set
*
* @exception IllegalArgumentException <ul>
- * <li>ERROR_NULL_ARGUMENT - if the parameter is null</li>
* <li>ERROR_INVALID_ARGUMENT - if the parameter has been disposed</li>
* </ul>
* @exception SWTException <ul>