Skip to content

Commit e9eb28e

Browse files
committed
Revert setAxisTitle modification
1 parent aca166a commit e9eb28e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/chart/options/config.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ void Config::setChannelParam(const std::string &path,
6262
auto id = Conv::parse<ChannelId>(parts.at(1));
6363
auto property = parts.at(2);
6464

65-
if (property == "title") { setter->setAxisTitle(id, value); }
65+
if (property == "title") { setter->setTitle(id, value); }
6666
else if (property == "axis") {
6767
setter->setAxisLine(id, Conv::parse<Base::AutoBool>(value));
6868
}

src/chart/options/optionssetter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ OptionsSetter &OptionsSetter::setLegend(const Options::Legend &legend)
174174
return *this;
175175
}
176176

177-
OptionsSetter &OptionsSetter::setAxisTitle(const ChannelId &channelId,
177+
OptionsSetter &OptionsSetter::setTitle(const ChannelId &channelId,
178178
const std::string &title)
179179
{
180180
options.getChannels().at(channelId).title = title;

src/chart/options/optionssetter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class OptionsSetter
5959
virtual OptionsSetter &setTitle(
6060
const std::optional<std::string> &title);
6161
virtual OptionsSetter &setLegend(const Options::Legend &legend);
62-
virtual OptionsSetter &setAxisTitle(const ChannelId &channelId,
62+
virtual OptionsSetter &setTitle(const ChannelId &channelId,
6363
const std::string &title);
6464
virtual OptionsSetter &setAxisLine(const ChannelId &channelId,
6565
Base::AutoBool enable);

0 commit comments

Comments
 (0)