• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

作図ソフト dia の改良版


Commit MetaInfo

Révision0c3ffbf5b1e07d7a6e584799207bcd8faf77faa7 (tree)
l'heure2004-07-18 04:23:16
AuteurLars Clausen <lclausen@src....>
CommiterLars Clausen

Message de Log

Image path name patch

Change Summary

Modification

--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
1+2004-07-17 Lars Clausen <lars@raeder.dk>
2+
3+ * objects/standard/image.c (image_load): Use path of diagram
4+ rather than running directory as base for image file place.
5+
16 2004-07-17 Sagar Rastogi <rastogi@students.iiit.net>
27
38 * app/disp_callbacks.c: Fixed #144962 (also in KNOWN_BUGS),
--- a/objects/standard/image.c
+++ b/objects/standard/image.c
@@ -692,9 +692,11 @@ image_load(ObjectNode obj_node, int version, const char *filename)
692692 char *temp_string;
693693
694694 temp_string = g_malloc(strlen(diafile_dir) +
695- strlen(image->file) +1);
695+ strlen(G_DIR_SEPARATOR_S) +
696+ strlen(image->file) + 1);
696697
697698 strcpy(temp_string, diafile_dir);
699+ strcat(temp_string, G_DIR_SEPARATOR_S);
698700 strcat(temp_string, image->file);
699701
700702 image->image = dia_image_load(temp_string);