Skip to content

Commit

Permalink
fixed crash when selecting SIFT detector while DAISY descriptor is used.
Browse files Browse the repository at this point in the history
  • Loading branch information
matlabbe committed Jul 10, 2015
1 parent 4b5da36 commit 181b00b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/ParametersToolBox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 181b00b

Please sign in to comment.