diff options
Diffstat (limited to 'vcl/source/control/edit.cxx')
-rw-r--r-- | vcl/source/control/edit.cxx | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx index 18f4fb70ee66..27eaddaf1949 100644 --- a/vcl/source/control/edit.cxx +++ b/vcl/source/control/edit.cxx @@ -2908,7 +2908,15 @@ OUString Edit::GetSurroundingText() const Selection Edit::GetSurroundingTextSelection() const { - return GetSelection(); + return GetSelection(); +} + +bool Edit::DeleteSurroundingText(const Selection& rSelection) +{ + SetSelection(rSelection); + DeleteSelected(); + // maybe we should update mpIMEInfos here + return true; } FactoryFunction Edit::GetUITestFactory() const |