Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with image defined as variable when closing / opening project #32382

Closed
simogeo opened this issue Oct 24, 2019 · 3 comments · Fixed by #32399
Closed

Problem with image defined as variable when closing / opening project #32382

simogeo opened this issue Oct 24, 2019 · 3 comments · Fixed by #32399
Assignees
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Project

Comments

@simogeo
Copy link
Contributor

simogeo commented Oct 24, 2019

Describe the bug
From Map Composer (gestionnaire de mise en page), Image is not displayed when defined from project variable and opening again a project

How to Reproduce

  1. Create a project
  2. Define a variable like `project_layout_logo' and set the path to image
  3. Create a new Map composer layout.
  4. Add an image specifying the variable
  5. Save your project
  6. Close your project
  7. Open it again and go to map print layout - Image is missing, replaced by Red cross. You need to specify again the variable.

QGIS and OS versions

Version de QGIS | 3.8.1-Zanzibar | Révision du code | dcd95cc
Compilé avec Qt | 5.9.5 | Utilisant Qt | 5.9.5
Compilé avec GDAL/OGR | 2.2.3 | Utilisé avec GDAL/OGR | 2.2.3
Compilé avec GEOS | 3.6.2-CAPI-1.10.2 | Utilisé avec GEOS | 3.6.2-CAPI-1.10.2 4d2925d6
Version du client PostgreSQL | 10.9 (Ubuntu 10.9-0ubuntu0.18.04.1) | Version de SpatiaLite | 4.3.0a
Version de QWT | 6.1.3 | Version de QScintilla2 | 2.10.2
Version de PROJ.4 : | 493
OS Version | Ubuntu 18.04.3 LTS |  

@simogeo simogeo added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Oct 24, 2019
@roya0045
Copy link
Contributor

So the main issue is that the variable doesn't remain in the project, rather than an issue with the image itself?

@simogeo
Copy link
Contributor Author

simogeo commented Oct 24, 2019

The variable remains in the project but is not selected by default. Have to select it again each time I open the project

Clicking the yellow dropdown image button (in object properties). I can see Variable is selected instead of the right one !

☑ Variable
☐ Current : @project_layout_logo

@gioman gioman added the Project label Oct 24, 2019
@nyalldawson nyalldawson self-assigned this Oct 24, 2019
@nyalldawson
Copy link
Collaborator

Confirmed

nyalldawson added a commit to nyalldawson/QGIS that referenced this issue Oct 24, 2019
This ensure project level variables are correctly in place before
trying to read other components which may depend on these variables,
e.g. layouts

Fixes qgis#32382
nyalldawson added a commit that referenced this issue Oct 25, 2019
This ensure project level variables are correctly in place before
trying to read other components which may depend on these variables,
e.g. layouts

Fixes #32382
backporting bot pushed a commit that referenced this issue Oct 25, 2019
This ensure project level variables are correctly in place before
trying to read other components which may depend on these variables,
e.g. layouts

Fixes #32382
nirvn pushed a commit that referenced this issue Oct 26, 2019
This ensure project level variables are correctly in place before
trying to read other components which may depend on these variables,
e.g. layouts

Fixes #32382
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Project
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants