fixed crash when selecting SIFT detector while DAISY descriptor is used.
This commit is contained in:
parent
4b5da36512
commit
181b00bf22
@ -569,9 +569,10 @@ void ParametersToolBox::changeParameter(const int & value)
|
||||
int index = descriptorBox->findText(comboBox->currentText());
|
||||
if(index >= 0)
|
||||
{
|
||||
QString tmp = Settings::getFeature2D_2Descriptor();
|
||||
*tmp.begin() = '0'+index;
|
||||
Settings::setFeature2D_2Descriptor(tmp);
|
||||
QStringList tmp = Settings::getFeature2D_2Descriptor().split(':');
|
||||
UASSERT(tmp.size() == 2);
|
||||
QString newTmp = QString('0'+index)+":"+tmp.back();
|
||||
Settings::setFeature2D_2Descriptor(newTmp);
|
||||
this->updateParameter(Settings::kFeature2D_2Descriptor());
|
||||
}
|
||||
else
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user