Reduce the scope of some local variables
This commit is contained in:
parent
af1cf0a5f3
commit
fe1737d399
63 changed files with 163 additions and 152 deletions
|
|
@ -1613,11 +1613,11 @@ void MyFrame::OnUpdateFormat(wxUpdateUIEvent& event)
|
|||
void MyFrame::OnUpdateImage(wxUpdateUIEvent& event)
|
||||
{
|
||||
wxRichTextRange range;
|
||||
wxRichTextObject *obj;
|
||||
|
||||
range = m_richTextCtrl->GetSelectionRange();
|
||||
if (range.ToInternal().GetLength() == 1)
|
||||
{
|
||||
wxRichTextObject *obj;
|
||||
obj = m_richTextCtrl->GetFocusObject()->GetLeafObjectAtPosition(range.GetStart());
|
||||
if (obj && obj->IsKindOf(CLASSINFO(wxRichTextImage)))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue