mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 14:59:30 +02:00
Qt: proper conversion from widestring.
This commit is contained in:
parent
80b197d439
commit
da19cbeace
@ -291,7 +291,7 @@ begin
|
||||
CurrentPageSize := QtDefaultPrinter.PageSize;
|
||||
|
||||
EnumQPrinters(PrinterList);
|
||||
Index := PrinterList.IndexOf(UTF8Encode(QtDefaultPrinter.PrinterName));
|
||||
Index := PrinterList.IndexOf(UTF16ToUTF8(QtDefaultPrinter.PrinterName));
|
||||
if Index>=0 then
|
||||
begin
|
||||
{$IF DEFINED(LCLQt5) OR DEFINED(LCLQt6)}
|
||||
|
Loading…
Reference in New Issue
Block a user