| Summary: | Crashed trying to save a image downloaded from the camera | ||
|---|---|---|---|
| Product: | [Applications] digikam | Reporter: | greatbunzinni |
| Component: | Tags-Rating | Assignee: | Digikam Developers <digikam-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | crash | CC: | caulier.gilles |
| Priority: | NOR | ||
| Version First Reported In: | 0.9.2 | ||
| Target Milestone: | --- | ||
| Platform: | Ubuntu | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | 0.9.3 | |
| Sentry Crash Report: | |||
|
Description
greatbunzinni
2007-10-26 20:53:59 UTC
SVN commit 733624 by cgilles:
digiKam from KDE3 branch : fix crash during SaveAs when editor is started from CameraGui to show picture.
There is no ImageInfo instance available to store digiKam properties in image metadata.
M +9 -5 imagewindow.cpp
--- branches/extragear/kde3/graphics/digikam/utilities/imageeditor/editor/imagewindow.cpp #733623:733624
@@ -866,11 +866,15 @@
bool ImageWindow::saveAs()
{
- // Write metadata from database to DImg
- MetadataHub hub;
- hub.load(d->imageInfoCurrent);
- DImg image(m_canvas->currentImage());
- hub.write(image, MetadataHub::FullWrite);
+ // If image editor is started from CameraGUI, there is no ImageInfo instance to use.
+ if (d->imageInfoCurrent)
+ {
+ // Write metadata from database to DImg
+ MetadataHub hub;
+ hub.load(d->imageInfoCurrent);
+ DImg image(m_canvas->currentImage());
+ hub.write(image, MetadataHub::FullWrite);
+ }
return ( startingSaveAs(d->urlCurrent) );
}
This bug is fixed too in KDE4 Gilles |