fix iOS text input and export ppbr

This commit is contained in:
2019-09-19 15:25:33 +02:00
parent 77a3bdde03
commit b8c646f748
6 changed files with 27 additions and 22 deletions

View File

@@ -724,7 +724,7 @@ bool NodePanelBrushPreset::export_ppbr(const std::string& path, const PPBRInfo&
info.class_id = "ppbr_info";
info.name = L"info header";
bool has_header_image = info_data.header_image.m_data != nullptr;
bool has_header_image = info_data.header_image != nullptr;
info.props["author"] = std::make_shared<Serializer::String>(info_data.author);
info.props["email"] = std::make_shared<Serializer::String>(info_data.email);
@@ -743,8 +743,8 @@ bool NodePanelBrushPreset::export_ppbr(const std::string& path, const PPBRInfo&
// header image
if (has_header_image)
{
sw << info_data.header_image;
info_data.header_image.save_jpg(out_path + "/header.jpg", 75);
sw << *info_data.header_image;
info_data.header_image->save_jpg(out_path + "/header.jpg", 75);
}
pb->increment();