Debugger: Fix #10781.
- Don't attempt to calculate a selection region if we don't currently have a valid target block. Should fix remaining part of #10781.
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2011-2013, Rene Gollent, [email protected]. All rights reserved.
|
* Copyright 2011-2014, Rene Gollent, [email protected]. All rights reserved.
|
||||||
* Distributed under the terms of the MIT License.
|
* Distributed under the terms of the MIT License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -745,7 +745,7 @@ MemoryView::_GetAddressDisplayWidth() const
|
|||||||
void
|
void
|
||||||
MemoryView::_GetSelectionRegion(BRegion& region)
|
MemoryView::_GetSelectionRegion(BRegion& region)
|
||||||
{
|
{
|
||||||
if (fHexMode == HexModeNone)
|
if (fHexMode == HexModeNone || fTargetBlock == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
region.MakeEmpty();
|
region.MakeEmpty();
|
||||||
|
|||||||
Reference in New Issue
Block a user