summaryrefslogtreecommitdiff
path: root/svx/source/gallery2/galexpl.cxx
diff options
context:
space:
mode:
authorKai Ahrens <ka@openoffice.org>2000-11-16 11:17:44 +0000
committerKai Ahrens <ka@openoffice.org>2000-11-16 11:17:44 +0000
commite4e1ea13b39f21424e3dde6fe61a1e353864bab7 (patch)
treea3a717e03b45df2af5f854f35a9a31c003297d65 /svx/source/gallery2/galexpl.cxx
parent6e83c6c9cabcce0ad79a83988e75f12dc944759c (diff)
must changes (InetURLObject)
Diffstat (limited to 'svx/source/gallery2/galexpl.cxx')
-rw-r--r--svx/source/gallery2/galexpl.cxx10
1 files changed, 6 insertions, 4 deletions
diff --git a/svx/source/gallery2/galexpl.cxx b/svx/source/gallery2/galexpl.cxx
index 9180ecc0903d..89acfd78734d 100644
--- a/svx/source/gallery2/galexpl.cxx
+++ b/svx/source/gallery2/galexpl.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: galexpl.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: ka $ $Date: 2000-11-10 14:55:36 $
+ * last change: $Author: ka $ $Date: 2000-11-16 12:16:21 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -165,7 +165,7 @@ BOOL GalleryExplorer::FillObjList( const String& rThemeName, List& rObjList )
if( pTheme )
{
for( ULONG i = 0, nCount = pTheme->GetObjectCount(); i < nCount; i++ )
- rObjList.Insert( new String( pTheme->GetObjectPath( i ) ), LIST_APPEND );
+ rObjList.Insert( new String( pTheme->GetObjectURL( i ).GetMainURL() ), LIST_APPEND );
pGal->ReleaseTheme( pTheme, aDummyListener );
}
@@ -209,7 +209,9 @@ BOOL GalleryExplorer::InsertURL( const String& rThemeName, const String& rURL, c
if( pTheme )
{
- bRet = pTheme->InsertURL( INetURLObject( rURL, INET_PROT_FILE ) );
+ INetURLObject aURL( rURL );
+ DBG_ASSERT( aURL.GetProtocol() != INET_PROT_NOT_VALID, "invalid URL" );
+ bRet = pTheme->InsertURL( aURL );
pGal->ReleaseTheme( pTheme, aDummyListener );
}
}