summaryrefslogtreecommitdiffstats
path: root/svx/source/dialog/impgrf.cxx
diff options
context:
space:
mode:
authorPeter Burow <pb@openoffice.org>2000-12-07 05:13:46 +0000
committerPeter Burow <pb@openoffice.org>2000-12-07 05:13:46 +0000
commit229c1ae19d7e92f829356b3a1d9001f683f2de6d (patch)
tree2940e74d9b8fb9d0efb601ceceb3c4455905c552 /svx/source/dialog/impgrf.cxx
parent#80795#: resolve graphic url's (diff)
downloadcore-229c1ae19d7e92f829356b3a1d9001f683f2de6d.tar.gz
core-229c1ae19d7e92f829356b3a1d9001f683f2de6d.zip
fix: #80528# save the size
Diffstat (limited to 'svx/source/dialog/impgrf.cxx')
-rw-r--r--svx/source/dialog/impgrf.cxx11
1 files changed, 5 insertions, 6 deletions
diff --git a/svx/source/dialog/impgrf.cxx b/svx/source/dialog/impgrf.cxx
index ae4ec792e890..b7fd133287b8 100644
--- a/svx/source/dialog/impgrf.cxx
+++ b/svx/source/dialog/impgrf.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: impgrf.cxx,v $
*
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: kso $ $Date: 2000-12-01 07:59:53 $
+ * last change: $Author: pb $ $Date: 2000-12-07 06:13:46 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -511,8 +511,8 @@ void SvxGraphicPrevWin_Impl::Paint( const Rectangle& )
nCount = aMessage.GetTokenCount( sal_Unicode( ' ' ) ),
x = 2,
y = 2,
- nSpaceW = GetTextWidth( aStrSpace ),
- nCharH = GetTextHeight();
+ nSpaceW = (USHORT)GetTextWidth( aStrSpace ),
+ nCharH = (USHORT)GetTextHeight();
for ( i = 0; i < nCount; i++ )
{
String aWord = aMessage.GetToken( i, sal_Unicode( ' ' ) );
@@ -847,8 +847,7 @@ short SvxImportGraphicDialog::Execute()
do
{
- InitSize( UniString::CreateFromAscii(
- RTL_CONSTASCII_STRINGPARAM( "ImpGrfDialogSize" ) ) );
+ InitSize( IMPGRF_CONFIGNAME );
nRet = SfxFileDialog::Execute();
String aGrfPath = GetPath();