Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Desktop/results/ploteditoraxismodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ void AxisModel::setAxisData(const Json::Value & axis)

Json::Value settings = axis.get( "settings", Json::objectValue);

setTitle( tq( settings.get( "title", "" ).asString()));
Json::Value title = settings.get("title", "");

setTitle( tq( title.isString() ? title.asString() : title.isDouble() ? ColumnUtils::doubleToString(title.asDouble(), false) : title.isInt() ? std::to_string(title.asInt()) : ""));
setTitleType( TitleTypeFromString( settings.get( "titleType", "" ).asString())); //Defaults are set in *TypeFromString
setType( tq( settings.get( "type", "" ).asString()));
setBreaksType( BreaksTypeFromString( settings.get( "breaksType", "" ).asString()));
Expand Down
Loading