Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 754

Summary: TColorLineTool are adding extra copies of themselves in .dfms each time file is saved
Product: VCL TeeChart Reporter: philip.barwood
Component: ToolsAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED WORKSFORME    
Severity: normal CC: narcis, sandra
Priority: ---    
Version: 140220   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description philip.barwood 2014-04-29 13:13:17 EDT
I have a chart with some TColorLineTool on it. Every time I modify the .dfm and save it, it produces another copy of the original TColorLineTool I had on the chart. 

This is a new bug since the last update.... i.e since this issue was fixed: http://www.teechart.net/support/viewtopic.php?f=3&t=14525&hilit=TColorLineTool.

Originally:

        object chttoolAPESelection: TColorBandTool
          AllowDrag = False
          Color = 13828095
          DrawBehindAxes = True
          EndValue = 2.000000000000000000
          Pen.Visible = False
          ResizeEnd = True
          ResizeStart = True
          StartLinePen.Color = clSilver
          AxisID = 0
          object TColorLineTool
            Active = False
            DragRepaint = True
            Pen.Color = clSilver
            AxisID = 0
            object TAnnotationTool
              Shape.Alignment = taCenter
              Shape.Shadow.Visible = False
              Shape.TextAlignment = taCenter
              TextAlignment = taCenter
            end
          end
          object TColorLineTool
            Active = False
            DragRepaint = True
            Value = 2.000000000000000000
            AxisID = 0
            object TAnnotationTool
              Shape.Alignment = taCenter
              Shape.Shadow.Visible = False
              Shape.TextAlignment = taCenter
              TextAlignment = taCenter
            end
          end
        end

After saving changes to .dfm:

        object chttoolAPESelection: TColorBandTool
          AllowDrag = False
          Color = 13828095
          DrawBehindAxes = True
          EndValue = 2.000000000000000000
          Pen.Visible = False
          ResizeEnd = True
          ResizeStart = True
          StartLinePen.Color = clSilver
          AxisID = 0
          object TColorLineTool
            Active = False
            DragRepaint = True
            Pen.Color = clSilver
            AxisID = 0
            object TAnnotationTool
              Shape.Alignment = taCenter
              Shape.Shadow.Visible = False
              Shape.TextAlignment = taCenter
              TextAlignment = taCenter
            end
          end
          object TColorLineTool
            Active = False
            DragRepaint = True
            Value = 2.000000000000000000
            AxisID = 0
            object TAnnotationTool
              Shape.Alignment = taCenter
              Shape.Shadow.Visible = False
              Shape.TextAlignment = taCenter
              TextAlignment = taCenter
            end
          end
        end
        object TColorLineTool
          Active = False
          DragRepaint = True
          Value = 2.000000000000000000
          AxisID = 0
          object TAnnotationTool
            Shape.Alignment = taCenter
            Shape.Shadow.Visible = False
            Shape.TextAlignment = taCenter
            TextAlignment = taCenter
          end
        end
        object TColorLineTool
          Active = False
          DragRepaint = True
          Pen.Color = clSilver
          AxisID = 0
          object TAnnotationTool
            Shape.Alignment = taCenter
            Shape.Shadow.Visible = False
            Shape.TextAlignment = taCenter
            TextAlignment = taCenter
          end
        end

Each time saving the .dfm adds and extra 2 color line tools.
Comment 1 sandra pazos 2014-05-05 08:55:51 EDT
Hello, 

The problem doesn't occur for us with latest TeeChart Pro Source Code Beta. I would like suggest you download it from our client download area as indicate in the following thread:  http://www.teechart.net/support/viewtopic.php?f=3&t=14877.
 
Thanks in advance,
Comment 2 narcĂ­s calvet 2014-05-15 04:41:44 EDT
A maintenance release with the version Sandra mentioned was published earlier this week. You can download it at the client download area.