BandMath application does not get ready when adding multiple inputs
Mantis Issue 756, reported by jmichel, assigned to salbert, created: 2013-07-30
When using the BandMath application from Monteverdi 2.0, the application does not get ready when setting multiple inputs, even if everything seems ok to run.
One has to play with the il parameter (for instance using "Up" or "Down") to get the application ready.
1379578036 - salbertSame bug for TileFusion
1380806304 - salbertBug is due to the initialization text "Drag and drop dataset here" of the input QLineEdit. In deed, that text is considered a filename which causes an exception to be raised by a FileReader instance in otb::Wrapper::InputImageListParameter::SetNthFileName().
This bug could also be reproduced by typing an incorrect filename (case of using otbgui_* not Monteverdi2 since QLineEdit is read-only in MVD2).
Bug is fixed by moving the initialization text to a tool-tip.
IMHO: -- the call ClearValue() line 144 should be removed in case of an exception is raised; -- the bool return value should be replaced by an (signed) int value -1 indicating Ok and i>=0 giving the index of the bad filename.