diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-06-21 11:55:40 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-06-21 12:49:05 -0700 |
commit | 174cb1ffb10d846834fdfd1538d128744dffd65c (patch) | |
tree | 420b55fd9e47210a46c874e08e6ea2faa2ae0edb /qthelperfromc.h | |
parent | 31fbc167850572f034c7fbb8551e10e0cfd7ca29 (diff) | |
download | subsurface-174cb1ffb10d846834fdfd1538d128744dffd65c.tar.gz |
HTML export: need to work harder to find the pictures
Simply looking at the filename in the picture structure isn't enough (now,
arguably one might say that it should be and that that data structure
should be updated, but that's not how other parts of Subsurface have
implemented things so I don't want to break that assumption here).
So instead we look up where the pictures actually was loaded from and then
copy that file into the right location.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qthelperfromc.h')
-rw-r--r-- | qthelperfromc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qthelperfromc.h b/qthelperfromc.h index 9a5e9551a..e48e3b1c4 100644 --- a/qthelperfromc.h +++ b/qthelperfromc.h @@ -7,7 +7,7 @@ void updateWindowTitle(); bool isCloudUrl(const char *filename); void subsurface_mkdir(const char *dir); char *get_file_name(const char *fileName); -void copy_image_and_overwrite(const char *cfileName, const char *cnewName); +void copy_image_and_overwrite(const char *cfileName, const char *path, const char *cnewName); char *hashstring(char *filename); bool picture_exists(struct picture *picture); const char *local_file_path(struct picture *picture); |