Changeset 86e9d94 in OpenModelica


Ignore:
Timestamp:
2021-04-13T14:33:39+02:00 (3 years ago)
Author:
Adeel Asghar <adeel.asghar@…>
Parents:
1af91635
Message:

Update OMNotebook

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • OMNotebook/OMNotebook/OMNotebookGUI/xmlparser.cpp

    r41249a33 r86e9d94  
    630630            if (curveElement.tagName() == XML_GRAPHCELL_CURVE)
    631631            {
    632               PlotCurve *pPlotCurve = new PlotCurve("", "", curveElement.attribute(XML_GRAPHCELL_TITLE), "", curveElement.attribute(XML_GRAPHCELL_TITLE), "", "", gCell->mpPlotWindow->getPlot());
     632              PlotCurve *pPlotCurve = new PlotCurve("", "", "", "", "", curveElement.attribute(XML_GRAPHCELL_TITLE), "", "", gCell->mpPlotWindow->getPlot());
    633633              // read the curve data
    634634              if (curveElement.hasAttribute(XML_GRAPHCELL_XDATA) && curveElement.hasAttribute(XML_GRAPHCELL_YDATA))
  • OMPlot/OMPlot/OMPlotGUI/PlotCurve.cpp

    r1af91635 r86e9d94  
    8585      xVariable += QString(" (%1)").arg(getXDisplayUnit());
    8686    }
    87     titleStr += QString(" vs %1").arg(xVariable);
     87    if (!xVariable.isEmpty()) {
     88      titleStr += QString(" vs %1").arg(xVariable);
     89    }
    8890  }
    8991  QwtPlotItem::setTitle(titleStr);
Note: See TracChangeset for help on using the changeset viewer.