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 2602 - Area Series LinePen not rendering correctly with a specific dataset.
Summary: Area Series LinePen not rendering correctly with a specific dataset.
Status: RESOLVED FIXED
Alias: None
Product: .NET TeeChart
Classification: Unclassified
Component: Series (show other bugs)
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Steema Issue Manager
URL: https://steema.com/support/viewtopic....
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-11 05:35 EDT by christopher ireland
Modified: 2023-04-11 10:57 EDT (History)
0 users

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


Attachments
Project to reproduce issue (11.47 KB, application/zip)
2023-04-11 05:35 EDT, christopher ireland
Details
reproducible in version 4.0.2009.62332 (122.09 KB, image/png)
2023-04-11 05:36 EDT, christopher ireland
Details

Note You need to log in before you can comment on or make changes to this bug.
Description christopher ireland 2023-04-11 05:35:22 EDT
Created attachment 1044 [details]
Project to reproduce issue

Using the project attached and zooming the chart we can see that the Area's LinePen is not rendering correctly.
Comment 1 christopher ireland 2023-04-11 05:36:40 EDT
Created attachment 1045 [details]
reproducible in version 4.0.2009.62332

Screenshot showing that this issue is reproducible in version 4.0.2009.62332.
Comment 2 christopher ireland 2023-04-11 10:57:49 EDT
diff --git a/TeeChart/Styles/Custom.cs b/TeeChart/Styles/Custom.cs
index 0c361f56..6a1695ac 100644
--- a/TeeChart/Styles/Custom.cs
+++ b/TeeChart/Styles/Custom.cs
@@ -3518,11 +3518,12 @@ System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.Desi
         {
             if (drawArea && IsAreaGradRelative())
             {
-                return ((IgnoreNull() || (DoNotPaintNull() && drawArea)) || !IsNull(valueIndex));
+                return IgnoreNull() || (DoNotPaintNull() && drawArea) || !IsNull(valueIndex);
             }
             else
             {
-                return ((x != OldX) || (y != OldY)) && ((IgnoreNull() || (DoNotPaintNull() && drawArea)) || !IsNull(valueIndex));
+                var diff = x != OldX || y != OldY;
+                return diff && (IgnoreNull() || (DoNotPaintNull() && drawArea)) || !IsNull(valueIndex);
             }
         }