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 538 - If you set TPieTool Pen.Width=1 at design time, it isn't saved to the dfm
Summary: If you set TPieTool Pen.Width=1 at design time, it isn't saved to the dfm
Status: RESOLVED FIXED
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Tools (show other bugs)
Version: 131119
Hardware: PC Windows
: --- enhancement
Target Milestone: ---
Assignee: Steema Issue Manager
URL: http://www.teechart.net/support/viewt...
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-16 11:13 EST by yeray alonso
Modified: 2014-01-22 12:29 EST (History)
1 user (show)

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version:


Attachments
test project (1.96 KB, application/octet-stream)
2014-01-16 11:13 EST, yeray alonso
Details

Note You need to log in before you can comment on or make changes to this bug.
Description yeray alonso 2014-01-16 11:13:18 EST
Created attachment 70 [details]
test project

If you change the TPieTool's Pen.Width at designtime, it isn't saved to the dfm and when the application starts the Pen is created with its default Width: 4.

It works fine with other Pen.Width values; it only doesn't save it for the value 1.
Comment 1 david berneda 2014-01-22 12:29:01 EST
Fixed. 
The base class TTeePen (TeCanvas.pas) now has a DefaultWidth field (by default = 1).  

TPieTool and TNearestTool initialize Pen.Width and DefaultWidth to a different value than 1, and thus the TTeePen.IsWidthStored function now allows persisting it when its 1. (1 was the previous "default" Width value in VCL TPen class).