Commit bc2d5b95 authored by Robert Applin's avatar Robert Applin
Browse files

Refs #31571. Fix warnings of char.

parent cc585a61
......@@ -742,8 +742,8 @@ void PreviewPlot::toggleLegend(const bool checked) {
*/
void PreviewPlot::tickLabelFormat(char *axis, char *style, bool useOffset) {
auto axes = m_canvas->gca();
const auto formatXTicks = (*axis == 'x' || *axis == 'both') && axes.getXScale().toStdString() == "linear";
const auto formatYTicks = (*axis == 'y' || *axis == 'both') && axes.getYScale().toStdString() == "linear";
const auto formatXTicks = *axis != 'y' && axes.getXScale().toStdString() == "linear";
const auto formatYTicks = *axis != 'x' && axes.getYScale().toStdString() == "linear";
if (formatXTicks)
axes.tickLabelFormat(std::string("x").c_str(), style, useOffset);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment