HanSolo / medusa

A JavaFX library for Gauges
Apache License 2.0
687 stars 129 forks source link

Stop disabled autoScale overriding properties #201

Closed kahgoh closed 3 years ago

kahgoh commented 3 years ago

Fixes a bug where setting the autoScale can still override properties (even when it is set to "false") because it was being set in the loop through the HashMap. Consequently, it was possible for autoScale to override explicit settings (such as tick spacing) even if it is disabled in the builder.

This was especially happening when autoScale is triggered from setting another property, such as angleRange.

This also fixes https://github.com/HanSolo/Medusa/issues/200

Signed-off-by: Kah Goh villastar@yahoo.com.au

HanSolo commented 3 years ago

Thx for the heads up and the PR 👍🏻