[Gambas-user] Bug in QT4 Printer object FirstPage in Gambas 3.16.1

Cam Era cybercamera at gmail.com
Tue Jul 20 13:20:25 CEST 2021


Can anyone else confirm the following bug in the Printer (gb.qt4) object?

Steps to reproduce:

Public Sub Main()
  Dim my_printer As Printer
  my_printer = New Printer As "MyPrinter"
  my_printer.FirstPage = 1
  my_printer.LastPage = 3

End

Inspecting the my_printer.FirstPage property gives the wrong value of 0
while my_printer.LastPage gives the correct value of 3

It seems that the .FirstPage isn't being retained.

System details follow.
-----------------------------

[System]
Gambas=3.16.1
OperatingSystem=Linux
Kernel=5.4.0-77-generic
Architecture=x86_64
Distribution=Ubuntu 20.04.2 LTS
Desktop=UBUNTU:GNOME
Font=Ubuntu,11
Scale=8
Theme=yaru
Language=en_AU.UTF-8
Memory=7874M

[Libraries]
Cairo=libcairo.so.2.11600.0
Curl=libcurl.so.4.6.0
DBus=libdbus-1.so.3.19.11
GDK2=libgdk-x11-2.0.so.0.2400.32
GDK3=libgdk-3.so.0.2404.16
GStreamer=libgstreamer-1.0.so.0.1602.0
GTK+2=libgtk-x11-2.0.so.0.2400.32
GTK+3=libgtk-3.so.0.2404.16
OpenGL=libGL.so.1.7.0
Poppler=libpoppler.so.73.0.0
Poppler=libpoppler.so.97.0.0
QT5=libQt5Core.so.5.12.8
SDL=libSDL-1.2.so.0.11.4
SQLite=libsqlite3.so.0.8.6
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20210720/909b4afa/attachment.htm>


More information about the User mailing list