diff --git a/lib/libimhex/source/providers/provider.cpp b/lib/libimhex/source/providers/provider.cpp index 655bfc71a..e46a349f2 100644 --- a/lib/libimhex/source/providers/provider.cpp +++ b/lib/libimhex/source/providers/provider.cpp @@ -74,7 +74,7 @@ namespace hex::prv { if (difference > 0) EventProviderDataInserted::post(this, this->getActualSize(), difference); else if (difference < 0) - EventProviderDataRemoved::post(this, this->getActualSize(), -difference); + EventProviderDataRemoved::post(this, this->getActualSize() + difference, -difference); this->markDirty(); }