fix combobox issue, pad scissor by 1px

This commit is contained in:
2019-08-17 10:20:05 +02:00
parent a8e9e92d96
commit c1bd377ee8
7 changed files with 53 additions and 42 deletions

View File

@@ -1968,7 +1968,7 @@ void Canvas::export_cube_faces_thread(std::string file_name)
pb->increment();
#ifdef __IOS__
save_image_library(name);
save_image_library(path);
#endif
#ifdef __OBJC__
[files addObject : [NSString stringWithUTF8String:path.c_str()] ];
@@ -1980,10 +1980,10 @@ void Canvas::export_cube_faces_thread(std::string file_name)
#ifdef __OBJC__
static char name[128];
sprintf(name, "%s.zip", App::I->work_path.c_str());
auto zip_path = [NSString stringWithUTF8String : name];
auto zip_path = [NSString stringWithUTF8String:name];
//[SSZipArchive createZipFileAtPath:zip_path withFilesAtPaths:files];
for (NSString* f : files)
[[NSFileManager defaultManager] removeItemAtPath:f error:nil];
//for (NSString* f : files)
// [[NSFileManager defaultManager] removeItemAtPath:f error:nil];
#endif
}