Commit 0629ef2f authored by Geithner, Thomas's avatar Geithner, Thomas
Browse files

fixed min/max height handling

parent 2bb597b6
......@@ -33,8 +33,8 @@ Controller::Controller(Config& conf):
{
m_offset = stoi(m_config.get("offset", "0"));
m_minHeight = stoi(m_config.get("min_height", std::to_string(MIN_HEIGHT)));
m_maxHeight = stoi(m_config.get("max_height", std::to_string(MAX_HEIGHT)));
m_minHeight = stoi(m_config.get("min_height", std::to_string(MIN_HEIGHT))) + m_offset;
m_maxHeight = stoi(m_config.get("max_height", std::to_string(MAX_HEIGHT))) + m_offset;
}
void
......@@ -54,8 +54,8 @@ Controller::setOffset(int offset)
{
m_config.set("offset", offset);
m_maxHeight = m_offset + MAX_HEIGHT;
m_minHeight = m_offset + MIN_HEIGHT;
m_minHeight = stoi(m_config.get("min_height", std::to_string(MIN_HEIGHT))) + m_offset;
m_maxHeight = stoi(m_config.get("max_height", std::to_string(MAX_HEIGHT))) + m_offset;
}
int
......
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