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

Summary: Area Series LinePen not rendering correctly with a specific dataset.
Product: .NET TeeChart Reporter: christopher ireland <chris>
Component: SeriesAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED FIXED    
Severity: normal    
Priority: ---    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
URL: https://steema.com/support/viewtopic.php?f=4&t=17883
Chart Series: Area Delphi / C++ Builder RAD IDE Version:
Attachments: Project to reproduce issue
reproducible in version 4.0.2009.62332

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);
             }
         }