         // position of the lines has remained the same.
         if (compose)
             composeTextLines(unscaledWidth, unscaledHeight);
-        else if (sharedIndex != -1)
+        else if (displayObjectSharingMode != DisplayObjectSharingMode.OWNS_UNSHARED_OBJECT)
             adjustTextLines();
             
         // If the text is overset it always has to be clipped (as well as if 

import mx.utils.NameUtil;

import spark.components.Group;
import spark.core.IGraphicElement;

use namespace mx_internal;

        if (clipText)
        {
            alwaysCreateDisplayObject = true;
            if (displayObjectSharingMode == DisplayObjectSharingMode.OWNS_SHARED_OBJECT)
                return;
        }
        
