diff options
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/control/edit.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx index 895d35cef5e7..e92c2639b23d 100644 --- a/vcl/source/control/edit.cxx +++ b/vcl/source/control/edit.cxx @@ -727,9 +727,10 @@ void Edit::ImplDelete( const Selection& rSelection, sal_uInt8 nDirection, sal_uI } } - maText.remove( static_cast<sal_Int32>(aSelection.Min()), static_cast<sal_Int32>(aSelection.Len()) ); - maSelection.Min() = aSelection.Min(); - maSelection.Max() = aSelection.Min(); + const auto nSelectionMin = aSelection.Min(); + maText.remove( static_cast<sal_Int32>(nSelectionMin), static_cast<sal_Int32>(aSelection.Len()) ); + maSelection.Min() = nSelectionMin; + maSelection.Max() = nSelectionMin; ImplAlignAndPaint(); mbInternModified = true; } |