Opened 14 years ago

Last modified 13 years ago

#2336 new bug

loading a project from the command line results in broken rendering

Reported by: ricardogsilva Owned by: nobody
Priority: minor: annoyance Milestone: Version 1.7.0
Component: Project Loading / Saving Version: Trunk
Keywords: Cc:
Must Fix for Release: No Platform: Debian
Platform Version: Ubuntu 10.04 Awaiting user input: no

Description

When calling qgis from the command-line with:

qgis --project path_to_project

The project gets loaded but the map canvas gets rendered incorrectly.

I am attaching two screenshots, one with the correct rendering and the one when I call qgis from the terminal with the --project flag.

Please note the incorrectly placed scale bar, north arrow and copyright info on the mapcanvas. Also please note that the map canvas seems to think its size is much smaller than reality. Also, on the vector layer that is rendered, only one point is visible, whereas the layer has more points.

Attachments (2)

correctRender.png (105.3 KB ) - added by ricardogsilva 14 years ago.
This screenshot shows the rendering as the project is loaded via the qgis GUI
incorrectRender.png (105.6 KB ) - added by ricardogsilva 14 years ago.
This screenshot shows the rendering as the project is loaded via the command-line

Download all attachments as: .zip

Change History (7)

by ricardogsilva, 14 years ago

Attachment: correctRender.png added

This screenshot shows the rendering as the project is loaded via the qgis GUI

by ricardogsilva, 14 years ago

Attachment: incorrectRender.png added

This screenshot shows the rendering as the project is loaded via the command-line

comment:1 by ricardogsilva, 14 years ago

It seems that this issue is related to the state of the qgis main window. I am usually working with qgis's window maximized. Now I noticed that if I load the project from the command-line and then hit the unmaximize button, the window gets shorter (as expected) and also the rendering is back to normal. If I then go back to a maximized window everything works fine. I think the project gets loaded before the window is maximized, and that causes the rendering to become messed up.

comment:2 by ricardogsilva, 14 years ago

Priority: major: does not work as expectedminor: annoyance

comment:3 by pcav, 14 years ago

Milestone: Version 1.5.0Version 1.6.0

Still true for a recent QGIS?

comment:4 by ricardogsilva, 14 years ago

Platform Version: Ubuntu 9.10Ubuntu 10.04

yes, it still happens. Just tested it with QGIS 1.5.0-Trunk (rev. 13498) and the result is exactly the same as before. As noted in one of my previous comments, if I unmaximize the window and the remaximize it things get back to normal.

comment:5 by aghisla, 13 years ago

I can notice a slight change in scale when I follow these steps:

1- Open QGIS maximised, load a layer, save the project as it is
2- Reopen the project, unmaximise the window, when asked if to save the project, say no
3- Reopen the project, so that QGIS will remember last window size (unmaximised) while the project was saved full with the maximised window.

It is a small changement, not as big as the attached screenshot show, even if i change window size and proportions a lot. If you can share the point data and the project that causes the problem, I'll try to reproduce the bug.

Note: See TracTickets for help on using tickets.