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

when built-in SVGs are added to a composer layout paths should be relative to the install directory #14042

Closed
qgib opened this issue Jul 6, 2011 · 11 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Print Layouts Related to QGIS Print Layouts, Atlas or Reporting frameworks

Comments

@qgib
Copy link
Contributor

qgib commented Jul 6, 2011

Author Name: Alister Hood (@AlisterH)
Original Redmine Issue: 4056
Affected QGIS version: master
Redmine category:map_composer/printing


When a built in SVG is used as a layer symbol, the path is stored in the .qgs file as a path relative to the QGIS install directory, regardless of whether the project is configured to use absolute paths or relative paths. This is good, as it means the project file is portable between instances of QGIS installed on different platforms or in different directories.

When a built in SVG is added to a composer layout using the "add image" button, the path to the SVG is currently stored in the .qgs file as an absolute path or as a path relative to the .qgs file, depending on the project configuration. This is bad - if you open the composer layout on a system where QGIS is installed to a different location then the SVG is missing. If the SVG is built in, the path should be stored relative to the QGIS install directory. If the SVG is in one of the user-defined paths then it should be stored relative to that location.

The code changes for #13214 might be a helpful reference


@qgib
Copy link
Contributor Author

qgib commented Aug 29, 2011

Author Name: Paolo Cavallini (@pcav)


  • category_id was configured as 33
  • pull_request_patch_supplied was configured as 0

@qgib
Copy link
Contributor Author

qgib commented Nov 12, 2011

Author Name: Tim Sutton (Tim Sutton)


  • fixed_version_id was changed from Version 1.7.1 to Version 1.7.2

@qgib
Copy link
Contributor Author

qgib commented Nov 30, 2011

Author Name: Giovanni Manghi (@gioman)


  • fixed_version_id was changed from Version 1.7.2 to Version 1.7.3

@qgib
Copy link
Contributor Author

qgib commented Dec 16, 2011

Author Name: Giovanni Manghi (@gioman)


  • fixed_version_id was changed from Version 1.7.3 to Version 1.7.4

@qgib
Copy link
Contributor Author

qgib commented Apr 16, 2012

Author Name: Paolo Cavallini (@pcav)


  • crashes_corrupts_data was configured as 0
  • version was configured as master
  • fixed_version_id was changed from Version 1.7.4 to Version 1.8.0

@qgib
Copy link
Contributor Author

qgib commented Sep 4, 2012

Author Name: Paolo Cavallini (@pcav)


  • fixed_version_id was changed from Version 1.8.0 to Version 2.0.0

@qgib
Copy link
Contributor Author

qgib commented Apr 6, 2014

Author Name: Jürgen Fischer (@jef-n)


  • category_id was changed from 33 to Map Composer/Printing

@qgib
Copy link
Contributor Author

qgib commented Apr 23, 2014

Author Name: Alister Hood (@AlisterH)


When a built in SVG is added to a composer layout using the "add image" button, the path to the SVG is currently stored in the .qgs file as an absolute path or as a path relative to the .qgs file, depending on the project configuration.

Now it is always stored as an absolute path.

@qgib
Copy link
Contributor Author

qgib commented Jun 28, 2014

Author Name: Jürgen Fischer (@jef-n)


  • fixed_version_id was changed from Version 2.0.0 to Future Release - Lower Priority

@qgib
Copy link
Contributor Author

qgib commented Apr 30, 2017

Author Name: Giovanni Manghi (@gioman)


  • regression was configured as 0
  • easy_fix was configured as 0

@qgib
Copy link
Contributor Author

qgib commented Mar 9, 2019

Author Name: Giovanni Manghi (@gioman)


End of life notice: QGIS 2.18 LTR
*
Source:*
http://blog.qgis.org/2019/03/09/end-of-life-notice-qgis-2-18-ltr/


  • resolution was changed from to end of life
  • status_id was changed from Open to Closed

@qgib qgib closed this as completed Mar 9, 2019
@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Print Layouts Related to QGIS Print Layouts, Atlas or Reporting frameworks labels May 24, 2019
@qgib qgib added this to the Future Release - Lower Priority milestone May 24, 2019
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! Print Layouts Related to QGIS Print Layouts, Atlas or Reporting frameworks
Projects
None yet
Development

No branches or pull requests

1 participant