From d15e86fca2c31c97b6a6432a1651a7b615a81494 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C4=81rlis=20Se=C5=86ko?= Date: Wed, 16 Jul 2025 01:06:21 +0300 Subject: [PATCH] Fix text range styling. Bug caused by 3f633c9deb319b8933d893887245d41506c70112 . --- src/text-editing.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/text-editing.cpp b/src/text-editing.cpp index b4b059f0eb..1ba4fcb2ce 100644 --- a/src/text-editing.cpp +++ b/src/text-editing.cpp @@ -1409,7 +1409,7 @@ void sp_te_adjust_linespacing_screen(SPItem *text, Text::Layout::iterator /*star /** converts an iterator to a character index, mainly because ustring::substr() doesn't have a version that takes iterators as parameters. */ -static unsigned char_index_of_iterator(Glib::ustring string, Glib::ustring::const_iterator text_iter) +static unsigned char_index_of_iterator(Glib::ustring const &string, Glib::ustring::const_iterator text_iter) { unsigned n = 0; for (Glib::ustring::const_iterator it = string.begin() ; it != string.end() && it != text_iter ; ++it) -- GitLab