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

        if (clipText)
        {
            mx_internal::alwaysCreateDisplayObject = true;
            if (shareIndex > 0)
                return;
        }
        


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

/**
 *  The base class for GraphicElements such as TextBox and TextGraphic
