diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index 183a555eae7a..a965be77500e 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -195,7 +195,7 @@ static LibreOfficeDocument* lo_documentLoad(LibreOffice* pThis, const char* pURL aURL, OUString("_blank"), 0, uno::Sequence()); - if (xComponentLoader.is()) + if (xComponent.is()) return new LibLODocument_Impl(xComponent); else pLib->maLastExceptionMsg = "unknown load failure";