Skip to content

Commit ccdfe74

Browse files
committed
Wrong orientation after switching from circle geometry fixed.
1 parent 66e1cd4 commit ccdfe74

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
- Allow more than 5 colors in TS color palette and gradient declaration.
88
The format won`t be checked in compile time, only in runtime.
99
- animation-begin event called after actual animation is set up.
10-
- animation control methods take effect immediately.
10+
- Animation control methods take effect immediately.
11+
- Wrong orientation after switching from circle geometry fixed.
1112

1213
### Added
1314

src/chart/options/advancedoptions.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,13 @@ OptionsSetter &OrientationSelector::setHorizontal(bool horizontal)
8686
return *this;
8787
}
8888

89+
OptionsSetter &OrientationSelector::setShape(const ShapeType::Type &type)
90+
{
91+
Base::setShape(type);
92+
fixHorizontal();
93+
return *this;
94+
}
95+
8996
void OrientationSelector::fixHorizontal()
9097
{
9198
auto horOver = horizontalOverride();

src/chart/options/advancedoptions.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ class OrientationSelector : public OptionsSetter
1818
std::optional<size_t> pos = std::nullopt) override;
1919
OptionsSetter &deleteSeries(const ScaleId &scaleId, const Data::SeriesIndex &index) override;
2020
OptionsSetter &setHorizontal(bool horizontal) override;
21+
OptionsSetter &setShape(const ShapeType::Type &type) override;
22+
2123
private:
2224
std::optional<bool> horizontalOverride() const;
2325
void fixHorizontal();

0 commit comments

Comments
 (0)