1
0
Fork 0

Support start/end selection in memory map for plugins

This commit is contained in:
Duncan Ogilvie 2021-06-29 23:48:28 +02:00
parent da085fe84f
commit bb6959843d
1 changed files with 3 additions and 1 deletions

View File

@ -667,7 +667,9 @@ void MemoryMapView::findReferencesSlot()
void MemoryMapView::selectionGetSlot(SELECTIONDATA* selection)
{
selection->start = selection->end = duint(getCellContent(getInitialSelection(), 0).toULongLong(nullptr, 16));
auto sel = getSelection();
selection->start = getCellUserdata(sel.front(), 0);
selection->end = getCellUserdata(sel.back(), 0);
Bridge::getBridge()->setResult(BridgeResult::SelectionGet, 1);
}