diff dwt/custom/StyleRange.d @ 213:36f5cb12e1a2

Update to SWT 3.4M7
author Frank Benoit <benoit@tionex.de>
date Sat, 17 May 2008 17:34:28 +0200
parents ab60f3309436
children fd9c62a2998e
line wrap: on
line diff
--- a/dwt/custom/StyleRange.d	Mon May 05 00:12:38 2008 +0200
+++ b/dwt/custom/StyleRange.d	Sat May 17 17:34:28 2008 +0200
@@ -1,5 +1,5 @@
 /*******************************************************************************
- * Copyright (c) 2000, 2006 IBM Corporation and others.
+ * Copyright (c) 2000, 2007 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
@@ -46,23 +46,23 @@
      */
     public int fontStyle = DWT.NORMAL;
 
-/++
- + DWT extension for clone implementation
- +/
-protected this( StyleRange other ){
-    super( other );
-    start = other.start;
-    length = other.length;
-    fontStyle = other.fontStyle;
-}
-
 /**
  * Create a new style range with no styles
  *
  * @since 3.2
  */
 public this() {
-    super(null, null, null);
+}
+
+/**
+ * Create a new style range from an existing text style.
+ *
+ *@param style the text style to copy
+ *
+ *@since 3.4
+ */
+public this(TextStyle style) {
+    super(style);
 }
 
 /**
@@ -144,6 +144,7 @@
     if (fontStyle !is DWT.NORMAL) return false;
     if (underline) return false;
     if (strikeout) return false;
+    if (borderStyle !is DWT.NONE) return false;
     return true;
 }