From 60beba6a73c46d4564599467badd6136f9523434 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Sun, 11 Dec 2011 22:30:46 +0100 Subject: Revert buggy 4046a1dfc2ba5b52cab7083f4817351c647a59c3 --- sot/source/base/formats.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sot') diff --git a/sot/source/base/formats.cxx b/sot/source/base/formats.cxx index 1c5ec071939c..2bfa0661f4bf 100644 --- a/sot/source/base/formats.cxx +++ b/sot/source/base/formats.cxx @@ -1325,7 +1325,8 @@ rEntry if( pFDesc->cItems ) { - bRet = (4 < (pFDesc->fgd[ 0 ].cFileName.size())) && sDesc.Copy( sDesc.Len()-4 ).EqualsIgnoreCaseAscii( ".URL" ); + ByteString sDesc( pFDesc->fgd[ 0 ].cFileName ); + bRet = 4 < sDesc.Len() && sDesc.Copy( sDesc.Len()-4 ).EqualsIgnoreCaseAscii( ".URL" ); } } } -- cgit