https://bugs.documentfoundation.org/show_bug.cgi?id=150553

--- Comment #13 from V Stuart Foote <[email protected]> ---
(In reply to Julien Nabet from comment #12)

> 
> I added some traces on the if else block:
> diff --git a/editeng/source/editeng/impedit2.cxx
> b/editeng/source/editeng/impedit2.cxx
> index 4e87e36af5d3..b00a6b8b8f46 100644
> --- a/editeng/source/editeng/impedit2.cxx
> +++ b/editeng/source/editeng/impedit2.cxx
> @@ -4044,6 +4044,7 @@ sal_Int32 ImpEditEngine::GetChar(
>                      sal_uInt16 nScriptType = GetI18NScriptType( aPaM );
>                      if ( nScriptType == i18n::ScriptType::COMPLEX )
>                      {
> +                        fprintf(stderr, "COMPLEX\n");
>                          uno::Reference < i18n::XBreakIterator > _xBI(
> ImplGetBreakIterator() );
>                          sal_Int32 nCount = 1;
>                          lang::Locale aLocale = GetLocale( aPaM );
> @@ -4058,6 +4059,7 @@ sal_Int32 ImpEditEngine::GetChar(
>                      }
>                      else
>                      {
> +                        fprintf(stderr, "NOT COMPLEX\n");
>                          OUString aStr(pParaPortion->GetNode()->GetString());
>                          // tdf#102625: don't select middle of a pair of
> surrogates with mouse cursor
>                          if (rtl::isSurrogate(aStr[nChar]))
> 
> 
> I got only NOT COMPLEX appearing on console logs.

OK, thanks for the quick check, it was just a thought. I wasn't even sure if
Calc's edit engine calls use that GetString(). Just that the same split on
mouse cursor selection of a multi-byte glyph had been occuring in the sm
Formula editor's input box.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to