liblo: fix check of xcomponent

Change-Id: I8a05a067681767518c688eb836bbe676bed05996
This commit is contained in:
Tomaž Vajngerl
2014-04-12 12:33:32 +02:00
parent 5830799d5b
commit fa4c74f4d5

View File

@@ -195,7 +195,7 @@ static LibreOfficeDocument* lo_documentLoad(LibreOffice* pThis, const char* pURL
aURL, OUString("_blank"), 0,
uno::Sequence<css::beans::PropertyValue>());
if (xComponentLoader.is())
if (xComponent.is())
return new LibLODocument_Impl(xComponent);
else
pLib->maLastExceptionMsg = "unknown load failure";