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:
Rene Gollent
2014-05-17 21:41:35 -04:00
parent 6053c78a92
commit 4abae4aba8
@@ -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.
*/
@@ -745,7 +745,7 @@ MemoryView::_GetAddressDisplayWidth() const
void
MemoryView::_GetSelectionRegion(BRegion& region)
{
if (fHexMode == HexModeNone)
if (fHexMode == HexModeNone || fTargetBlock == NULL)
return;
region.MakeEmpty();