summaryrefslogtreecommitdiff
path: root/sw/source/uibase/shells/drawsh.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-11-23 16:52:23 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-11-23 21:27:25 +0100
commit8c9a3195068bf00e00290f363d5028e9986bbba6 (patch)
treebd571c7e021526bcd098952ea380dc039b70ee04 /sw/source/uibase/shells/drawsh.cxx
parenta27f26228c8311b3b01ecca81d6cdcd3ceb644e1 (diff)
Resolves: tdf#113962 save detected filter outside file dialog
different file dialog impls work differently so store the detected filter outside the file dialog Change-Id: I144d8df06e5265fed8f11b284a2f40c17c3e09ef Reviewed-on: https://gerrit.libreoffice.org/45166 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source/uibase/shells/drawsh.cxx')
-rw-r--r--sw/source/uibase/shells/drawsh.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/uibase/shells/drawsh.cxx b/sw/source/uibase/shells/drawsh.cxx
index 5b3ecc18b3d3..f41ced6a011a 100644
--- a/sw/source/uibase/shells/drawsh.cxx
+++ b/sw/source/uibase/shells/drawsh.cxx
@@ -158,7 +158,7 @@ void SwDrawShell::InsertPictureFromFile(SdrObject& rObject)
pNewGrafObj->SetGraphicLink(
bAsLink ? aDlg.GetPath() : OUString(),
aReferer,
- bAsLink ? aDlg.GetCurrentFilter() : OUString());
+ bAsLink ? aDlg.GetDetectedFilter() : OUString());
pResult = pNewGrafObj;
}