Commit c2daba42 authored by Mohammed Nafees's avatar Mohammed Nafees

Add fallback InputHandler to prevent crash when adding bookmark with UTM view angle

BUG: 381872
parent d5982b00
......@@ -562,21 +562,23 @@ void LatLonEdit::setNotation(GeoDataCoordinates::Notation notation)
d->m_inputHandler = new DMInputHandler(d);
break;
case GeoDataCoordinates::UTM:
/** @todo implement */
/** @todo see below */
break;
case GeoDataCoordinates::Astro:
/** @todo implement */
/** @todo see below */
break;
}
if (d->m_inputHandler) {
d->m_notation = notation;
d->m_inputHandler->setupUi();
d->m_inputHandler->setupMinMax(d->m_dimension);
d->m_inputHandler->setValue(d->m_value);
} else {
Q_ASSERT(false && "Support for this notation has not been implemented yet");
if (!d->m_inputHandler) {
/** @todo Temporary fallback to DecimalInputHandler
* Implement proper handlers for UTM and Astro */
d->m_inputHandler = new DecimalInputHandler(d);
}
d->m_notation = notation;
d->m_inputHandler->setupUi();
d->m_inputHandler->setupMinMax(d->m_dimension);
d->m_inputHandler->setValue(d->m_value);
}
void LatLonEdit::checkFloatValueOverflow()
......
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