Commit b385dbf6 authored by Gerrit Erichsen's avatar Gerrit Erichsen
Browse files

Applied hotfix from earlier for ConfigTableModel::getNumberOfVariationsForItem()

parent 0a8ddc89
......@@ -803,7 +803,9 @@ int ConfigTableModel::getNumberOfVariationsForItem(int itemIndex, bool onlyCapac
else if (itemIndex >= 0 && itemIndex < m_data.count())
{
variations = (m_data[itemIndex].getMaxPower() - m_data[itemIndex].getMinPower()) / m_data[itemIndex].getStepSizePower();
if (m_additionalInfo == AdditionalInfo::Capacity) // item is a storage
if (m_additionalInfo == AdditionalInfo::Capacity
|| m_additionalInfo == AdditionalInfo::Storage
|| m_additionalInfo == AdditionalInfo::Biomass) // item is a storage
{
variations2 *= (m_data[itemIndex].getMaxCapacity() - m_data[itemIndex].getMinCapacity()) / m_data[itemIndex].getStepSizeCapacity();
if (variations2 <= 0) //
......
Markdown is supported
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