changeset 255:f6dba57ef627

Add real copy ctor to StyleRange, this fixes the clone() impl.
author Frank Benoit <benoit@tionex.de>
date Sat, 12 Jul 2008 17:45:46 +0200
parents a73bd022b5ac
children 02962e389917
files dwt/custom/StyleRange.d
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/dwt/custom/StyleRange.d	Sat Jul 12 11:56:46 2008 +0200
+++ b/dwt/custom/StyleRange.d	Sat Jul 12 17:45:46 2008 +0200
@@ -73,6 +73,12 @@
  *
  * @since 3.4
  */
+public this(StyleRange style) {
+    this( cast(TextStyle)style);
+    this.start = style.start;
+    this.length = style.length;
+    this.fontStyle = style.fontStyle;
+}
 public this(TextStyle style) {
     super(style);
 }