diff dwtx/jface/text/DefaultPositionUpdater.d @ 161:f8d52b926852

...
author Frank Benoit <benoit@tionex.de>
date Wed, 27 Aug 2008 14:49:30 +0200
parents 26688fec6d23
children
line wrap: on
line diff
--- a/dwtx/jface/text/DefaultPositionUpdater.d	Wed Aug 27 02:07:22 2008 +0200
+++ b/dwtx/jface/text/DefaultPositionUpdater.d	Wed Aug 27 14:49:30 2008 +0200
@@ -194,7 +194,7 @@
      * Remembers the original state of the investigated position
      * @since 2.1
      */
-    protected Position fOriginalPosition= new Position(0, 0);
+    protected Position fOriginalPosition;
     /** Caches the offset of the replaced text */
     protected int fOffset;
     /** Caches the length of the replaced text */
@@ -211,6 +211,7 @@
      * @param category the category the updater is responsible for
      */
     public this(String category) {
+        fOriginalPosition= new Position(0, 0);
         fCategory= category;
     }