https://bugs.kde.org/show_bug.cgi?id=417275
Bug ID: 417275 Summary: scanAreaWidth and scanAreaHeight are wrong Product: libksane Version: unspecified Platform: Other OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: general Assignee: kare.s...@iki.fi Reporter: martin.marmso...@gmail.com Target Milestone: --- Checked out the scanAreaWidth() /Height functions and saw that there is returned the max value, why? Shouldn't it return the value? m_optBrX->getValue()? float KSaneWidget::scanAreaWidth() { float result = 0.0; if (d->m_optBrX) { if (d->m_optBrX->getUnit() == SANE_UNIT_PIXEL) { d->m_optBrX->getMaxValue(result); float dpi = currentDPI(); if (dpi < 1) { qDebug() << "Broken DPI value"; dpi = 1.0; } result = result / dpi / 25.4; } else if (d->m_optBrX->getUnit() == SANE_UNIT_MM) { d->m_optBrX->getMaxValue(result); } } return result; } -- You are receiving this mail because: You are watching all bug changes.