Skip to content

Commit 2113428

Browse files
committed
UI: Fix screen dump invalid file name for online files
1 parent ee6d6bb commit 2113428

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

ChangeLog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
Fix crash with online command if site is down
1010
Fix over scroll issue with line number widget
1111
Implemented editor F2 command to display online help
12+
Fix screen dump invalid file name for online files
1213

1314
2015-10-20
1415
Fix LET when assigning a value to a MAP/ARRAY field

src/ui/image.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,11 @@ void screen_dump() {
363363
#endif
364364
for (int i = 0; i < 1000; i++) {
365365
char file[OS_PATHNAME_SIZE];
366-
sprintf(file, "%ssbasic_dump_%d.png", path, i);
366+
if (strstr(path, "://") != NULL) {
367+
sprintf(file, "sbasic_dump_%d.png", i);
368+
} else {
369+
sprintf(file, "%ssbasic_dump_%d.png", path, i);
370+
}
367371
if (access(file, R_OK) != 0) {
368372
g_system->systemPrint("Saving screen to %s\n", file);
369373
lodepng_encode32_file(file, image, width, height);

0 commit comments

Comments
 (0)