Changeset View
Changeset View
Standalone View
Standalone View
plugins/impex/jpeg/kis_jpeg_export.cc
Context not available. | |||||
76 | if (!input) | 76 | if (!input) | ||
---|---|---|---|---|---|
77 | return KisImportExportFilter::NoDocumentCreated; | 77 | return KisImportExportFilter::NoDocumentCreated; | ||
78 | 78 | | |||
79 | KisImageWSP image = input->image(); | 79 | KisImageWSP image = input->savingImage(); | ||
80 | Q_CHECK_PTR(image); | 80 | Q_CHECK_PTR(image); | ||
81 | 81 | | |||
82 | KoDialog kdb; | 82 | KoDialog kdb; | ||
Context not available. | |||||
135 | 135 | | |||
136 | if (filename.isEmpty()) return KisImportExportFilter::FileNotFound; | 136 | if (filename.isEmpty()) return KisImportExportFilter::FileNotFound; | ||
137 | 137 | | |||
138 | // the image must be locked at the higher levels | | |||
139 | KIS_SAFE_ASSERT_RECOVER_NOOP(input->image()->locked()); | | |||
140 | KisPaintDeviceSP pd = new KisPaintDevice(*image->projection()); | 138 | KisPaintDeviceSP pd = new KisPaintDevice(*image->projection()); | ||
141 | 139 | | |||
142 | KisJPEGConverter kpc(input, getBatchMode()); | 140 | KisJPEGConverter kpc(input, getBatchMode()); | ||
Context not available. |