summaryrefslogtreecommitdiff
path: root/chart2/source/model/filter
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2016-02-09 14:58:47 +0100
committerMichael Stahl <mstahl@redhat.com>2016-02-09 15:13:51 +0100
commite9309e1f32e9029b62d67a3706ea63d4c5bb587a (patch)
tree75f79840340e505ce5d6ab6f4e709abcd082b69d /chart2/source/model/filter
parent555ee51b77a789253bffdd9ffb16bdc5e51b980a (diff)
don't assert that no ODF import happens without a base URL
Turns out that if you create a new document and then copy an embedded object from it to the clipboard, there really is no usable base URL. So don't assert and just log something, hopefully the important file import cases have been fixed already. Change-Id: Iee1027cbab4db10a273518739a5ab2c31627180e
Diffstat (limited to 'chart2/source/model/filter')
-rw-r--r--chart2/source/model/filter/XMLFilter.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/chart2/source/model/filter/XMLFilter.cxx b/chart2/source/model/filter/XMLFilter.cxx
index c18ac15632b1..ed133f433afa 100644
--- a/chart2/source/model/filter/XMLFilter.cxx
+++ b/chart2/source/model/filter/XMLFilter.cxx
@@ -383,7 +383,8 @@ sal_Int32 XMLFilter::impl_Import(
}
}
- assert(!aBaseUri.isEmpty()); // needed for relative URLs
+ // needed for relative URLs, but in clipboard copy/paste there may be none
+ SAL_INFO_IF(aBaseUri.isEmpty(), "chart2", "chart::XMLFilter: no base URL");
if( !aBaseUri.isEmpty() )
xImportInfo->setPropertyValue( "BaseURI", uno::makeAny( aBaseUri ) );