作図ソフト dia の改良版
Révision | 0c3ffbf5b1e07d7a6e584799207bcd8faf77faa7 (tree) |
---|---|
l'heure | 2004-07-18 04:23:16 |
Auteur | Lars Clausen <lclausen@src....> |
Commiter | Lars Clausen |
Image path name patch
@@ -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 | + | |
1 | 6 | 2004-07-17 Sagar Rastogi <rastogi@students.iiit.net> |
2 | 7 | |
3 | 8 | * app/disp_callbacks.c: Fixed #144962 (also in KNOWN_BUGS), |
@@ -692,9 +692,11 @@ image_load(ObjectNode obj_node, int version, const char *filename) | ||
692 | 692 | char *temp_string; |
693 | 693 | |
694 | 694 | temp_string = g_malloc(strlen(diafile_dir) + |
695 | - strlen(image->file) +1); | |
695 | + strlen(G_DIR_SEPARATOR_S) + | |
696 | + strlen(image->file) + 1); | |
696 | 697 | |
697 | 698 | strcpy(temp_string, diafile_dir); |
699 | + strcat(temp_string, G_DIR_SEPARATOR_S); | |
698 | 700 | strcat(temp_string, image->file); |
699 | 701 | |
700 | 702 | image->image = dia_image_load(temp_string); |