mirror of https://github.com/WerWolv/ImHex.git
fix: All bytes being selected when opening a new provider
This commit is contained in:
parent
434ced44f0
commit
d6bb408078
|
@ -894,9 +894,11 @@ namespace hex::plugin::builtin {
|
||||||
|
|
||||||
auto selection = this->m_hexEditor.getSelection();
|
auto selection = this->m_hexEditor.getSelection();
|
||||||
|
|
||||||
oldData.selectionStart = selection.getStartAddress();
|
if (selection != Region::Invalid()) {
|
||||||
oldData.selectionEnd = selection.getEndAddress();
|
oldData.selectionStart = selection.getStartAddress();
|
||||||
oldData.scrollPosition = this->m_hexEditor.getScrollPosition();
|
oldData.selectionEnd = selection.getEndAddress();
|
||||||
|
oldData.scrollPosition = this->m_hexEditor.getScrollPosition();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (newProvider != nullptr) {
|
if (newProvider != nullptr) {
|
||||||
|
|
Loading…
Reference in New Issue