Initial implementation only allowed to set the search string once. This change allows to change the search string and still retain the last position of a found string, so the search continues from this positon forward or backwards. This mimicks how we search through the GUI (which is the main use for this functionallity anyway).
Change-Id: I8a7aee4b6b6525f483f105feaa1f83c4a0ad9594 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95460
1f8a46ae50c6 vcl: VectorGraphicSearch - support changing search string
include/vcl/VectorGraphicSearch.hxx | 3 +-
vcl/qa/cppunit/VectorGraphicSearchTest.cxx | 33 +++++++++++++
vcl/source/graphic/VectorGraphicSearch.cxx | 79 ++++++++++++++++++++----------
3 files changed, 86 insertions(+), 29 deletions(-)
Upstream: cgit.freedesktop.org