Wrong themed colors

Hello,
I get wrong inherited fill, line and font colors in some cases.

For my test diagram I get #FFFFFF inherit fill foreground color for shapes with ID 1 and 2, #4672C4 for ID 4 (all of them have #4672C4 color).
But if I get color for ID 1 and 2 after ID 4, I will get right color #4672C4.

InheritChar property has Color value ‘0’.
For “Dynamic connectors” property Line.LineColor.Value is empty, property LineStyle is null, property MasterShape.LineStyle.Line.LineColor.Value has color value “Themed”.
How can I get color`s value?

ID:1, shape.NameU:Rectangle, Foreground Color:
ID:1, shape.NameU:Rectangle, Inherit Foreground Color: #FFFFFF
ID:1, shape.NameU:Rectangle, Inherit Font Color: 0

ID:2, shape.NameU:Ellipse, Foreground Color:
ID:2, shape.NameU:Ellipse, Inherit Foreground Color: #FFFFFF
ID:2, shape.NameU:Ellipse, Inherit Font Color: 0

ID:3, shape.NameU:Dynamic connector, Line Color:
ID:3, shape.NameU:Dynamic connector, LineStyle Color:
ID:3, shape.NameU:Dynamic connector, MasterShape LineStyle Color: Themed

ID:4, shape.NameU:Square, Foreground Color:
ID:4, shape.NameU:Square, Inherit Foreground Color: #4672C4
ID:4, shape.NameU:Square, Font Color:
ID:4, shape.NameU:Square, Inherit Font Color: 0

------------ Step 2 ------------
ID:1, shape.NameU:Rectangle, Foreground Color:
ID:1, shape.NameU:Rectangle, Inherit Foreground Color: #4672C4
ID:1, shape.NameU:Rectangle, Inherit Font Color: 0

ID:2, shape.NameU:Ellipse, Foreground Color:
ID:2, shape.NameU:Ellipse, Inherit Foreground Color: #4672C4
ID:2, shape.NameU:Ellipse, Inherit Font Color: 0

ID:3, shape.NameU:Dynamic connector, Line Color:
ID:3, shape.NameU:Dynamic connector, LineStyle Color:
ID:3, shape.NameU:Dynamic connector, MasterShape LineStyle Color: Themed

ID:4, shape.NameU:Square, Foreground Color:
ID:4, shape.NameU:Square, Inherit Foreground Color: #4672C4
ID:4, shape.NameU:Square, Font Color:
ID:4, shape.NameU:Square, Inherit Font Color: 0

test.zip (64.3 KB)

@dmbk

Thanks for contacting support.

We have tested the scenario in our environment using Aspose.Diagram for .NET 18.9 and were able to notice the API behavior which you have mentioned. We have logged an issue as DIAGRAMNET-51551 in our issue tracking system for the sake of correction. We will surely look into details of this issue and keep you posted with the status of its correction. Please be patient and spare us little time.

We are sorry for the inconvenience.

The issues you have found earlier (filed as DIAGRAMNET-51551) have been fixed in Aspose.Diagram for .NET 18.10.