BUG: changing quotes from context menu does not work
Dan
d3vf4n at tutanota.com
Sun Sep 24 03:49:10 UTC 2023
> Hello,
>
> while translating the UI I have run across this strange behaviour, which I qualify as a bug: the context-menu item to change a quotation mark character does not work as expected.
>
> PROBLEM
> ========
> Existing quotation characters do not switch to the paragraph's language default quotes when instructed to, via the context menu. In this test case, from Spanish («) to German (,,).
>
> EXPECTED BEHAVIOUR
> ===================
> Any quote character present in the document should be switched to the paragraph's language-default quoting style when instructed to, via the context menu.
>
>
I think I have a patch for this (see the attachment).
The context menu is created in src/frontends/qt/Menus.cpp and the command binded to that menu item is actually using the global quoting style, not the language default's (at the cursor position).
I have tested it and works, use the LyX file I attached in my previous e-mail as a test.
Daniel.
--
Enviat amb Tutanota.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Menus.cpp.diff
Type: text/x-patch
Size: 183 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20230924/ab58f071/attachment.bin>
More information about the lyx-devel
mailing list