Skip to content

Commit

Permalink
- Fix clean compilation of OMEdit
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@8467 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Apr 3, 2011
1 parent 44887c4 commit 73eda73
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion OMEdit/OMEditGUI/InteractiveSimulationTabWidget.cpp
Expand Up @@ -799,8 +799,10 @@ void InteractiveSimulationTab::initializeInteractivePlotting()
PlotCurve *pPlotCurve;
QStringList selectedVariablesList;
QList<QCheckBox*> variablesList = mpVariablesWidget->getVariablesList();
int i = 0;
foreach(QCheckBox* variable, variablesList)
{
i++;
attachFlag = true;
if (variable->checkState() == Qt::Checked)
{
Expand All @@ -816,7 +818,7 @@ void InteractiveSimulationTab::initializeInteractivePlotting()
if (attachFlag)
{
pPlotCurve = new PlotCurve(mpPlotWindow->getPlot());
QPen pen(pPlotCurve->getUniqueColor());
QPen pen(QColor::fromHsvF(i/(variablesList.length()+1),1,1));
pen.setWidth(2);
pPlotCurve->setPen(pen);
pPlotCurve->setTitle(variable->text());
Expand Down

0 comments on commit 73eda73

Please sign in to comment.