MantisBT - KWWidgets | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0007141 | KWWidgets | public | 2008-06-02 16:43 | 2008-06-03 09:29 | |
| Reporter | kentwilliams | ||||
| Assigned To | Yumin Yuan | ||||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | resolved | Resolution | fixed | ||
| Platform | OS | OS Version | |||
| Summary | 0007141: vtkKWLoadSaveDialog initially lists '1' as the file type in the 'Files of type:' combo box. | ||||
| Description | vtkKWLoadSaveDialog initially lists '1' as the file type in the 'Files of type:' combo box. | ||||
| Steps To Reproduce | |||||
| Additional Information | I tracked this down and provide a patch. The problem is this: first, a call to vtkKWComboBox::GetValueFromIndex() is made. This calls this->Script to get the value out of the TK widget. Then a call is made to vtkKWComboBox::SetValue(), which calls vtkKWWidget::IsAlive(), which calls vtkKWWidget::IsAlive(), which calls vtkKWApplication::EvaluateBooleanExpression() which calls vtkKWTkUtilities::EvaluateString() to get the value. But ... deep breath ... EvaluateString is the same function that vtkKWComboBox::GetValueFromIndex() calls to get the Nth string from the Combo box widget. And EvaluateString returns a static char * value that is overwritten every time it is called. The solution is to save the string returned from GetValueFromIndex, before calling SetValue. | ||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | https://public.kitware.com/Bug/file/1512/vtkKWFileBrowserDialog.cxx.patch | ||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2008-06-02 16:43 | kentwilliams | New Issue | |||
| 2008-06-02 16:43 | kentwilliams | File Added: vtkKWFileBrowserDialog.cxx.patch | |||
| 2008-06-03 08:51 | Sebastien Barre | Status | new => assigned | ||
| 2008-06-03 08:51 | Sebastien Barre | Assigned To | => Yumin Yuan | ||
| 2008-06-03 09:24 | Yumin Yuan | Note Added: 0012210 | |||
| 2008-06-03 09:28 | Yumin Yuan | Note Added: 0012211 | |||
| 2008-06-03 09:29 | Yumin Yuan | Status | assigned => resolved | ||
| 2008-06-03 09:29 | Yumin Yuan | Resolution | open => fixed | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||