Tracker: Unchecked dynamic_cast, CID 600349
This commit is contained in:
parent
9fc1e7ffae
commit
6ef1768d76
@ -1599,12 +1599,13 @@ FindPanel::SwitchMode(uint32 mode)
|
||||
ShowOrHideMimeTypeMenu();
|
||||
AddByNameOrFormulaItems();
|
||||
|
||||
if (buffer.Length()) {
|
||||
if (buffer.Length() > 0) {
|
||||
ASSERT(mode == kByFormulaItem
|
||||
|| oldMode == kByAttributeItem);
|
||||
BTextControl* textControl
|
||||
= dynamic_cast<BTextControl*>(FindView("TextControl"));
|
||||
textControl->SetText(buffer.String());
|
||||
if (textControl != NULL)
|
||||
textControl->SetText(buffer.String());
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user