librecad/librecad-plugindir.diff
Jan Engelhardt 268c4c9561 Accepting request 1108784 from home:polslinux:branches:graphics
- Update to release 2.2.0.2:
  * fixes an undetected vulnerability when opening malformed LFF
    font files that caused a crash
  * fixes format issues in bundled fonts
  * fixes regression, finding nearest points on ellipses caused a crash
  * plugin Importshp has been removed
- Drop librecad-use-system-shapelib.patch since the plugin has been
  removed.
- Rebase patches.

OBS-URL: https://build.opensuse.org/request/show/1108784
OBS-URL: https://build.opensuse.org/package/show/graphics/librecad?expand=0&rev=76
2023-09-04 10:47:57 +00:00

26 lines
837 B
Diff

From: Jan Engelhardt <jengelh@inai.de>
Date: 2012-05-11 08:16:47.544680812 +0200
Upstream: depending on whether it is considered an upstream bug or
not, it should be sent
Look in the right spot for plugins.
---
librecad/src/lib/engine/rs_system.cpp | 2 ++
1 file changed, 2 insertions(+)
Index: LibreCAD-2.2.0.2/librecad/src/lib/engine/rs_system.cpp
===================================================================
--- LibreCAD-2.2.0.2.orig/librecad/src/lib/engine/rs_system.cpp
+++ LibreCAD-2.2.0.2/librecad/src/lib/engine/rs_system.cpp
@@ -635,6 +635,9 @@ QStringList RS_System::getDirectoryList(
}
RS_SETTINGS->endGroup();
+ if (subDirectory == "plugins")
+ dirList.append("##LIBDIR##" + appDirName + "/" + subDirectory);
+
QStringList ret;
RS_DEBUG->print("RS_System::getDirectoryList: Paths:");