View Issue Details

IDProjectCategoryView StatusLast Update
0017288ScribusGraphics / Image Framespublic2024-10-14 13:38
ReporterAkiSakurai Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Product Version1.7.0.svn 
Summary0017288: "Update Image" does not work when the image is not available.
DescriptionTo reproduce, add an image, move the image to another folder, click "Update Image".
Now, the image becomes a cross as expected. Move the image back to the original location, click "Update Image" again, and the image frame is still a cross.
Additional InformationI believe this checking is unnecessary .

diff --git a/scribus/scribusdoc.cpp b/scribus/scribusdoc.cpp
index 906e533a2..2cd68404a 100644
--- a/scribus/scribusdoc.cpp
+++ b/scribus/scribusdoc.cpp
@@ -10472,19 +10472,17 @@ void ScribusDoc::updatePic()
                }
                else if ((currItem->isImageFrame()) || (currItem->isOSGFrame()))
                {
- if (currItem->imageIsAvailable)
- {
- int fho = currItem->imageFlippedH();
- int fvo = currItem->imageFlippedV();
- double imgX = currItem->imageXOffset();
- double imgY = currItem->imageYOffset();
- loadPict(currItem->Pfile, currItem, true);
- currItem->setImageFlippedH(fho);
- currItem->setImageFlippedV(fvo);
- currItem->setImageXOffset(imgX);
- currItem->setImageYOffset(imgY);
- toUpdate = true;
- }
+ int fho = currItem->imageFlippedH();
+ int fvo = currItem->imageFlippedV();
+ double imgX = currItem->imageXOffset();
+ double imgY = currItem->imageYOffset();
+ loadPict(currItem->Pfile, currItem, true);
+ currItem->setImageFlippedH(fho);
+ currItem->setImageFlippedV(fvo);
+ currItem->setImageXOffset(imgX);
+ currItem->setImageYOffset(imgY);
+ toUpdate = true;
TagsNo tags attached.
PatchNo

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2024-10-14 13:38 AkiSakurai New Issue