image.cxx (e1f63238) image.cxx (0848378b)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 284 unchanged lines hidden (view full) ---

293 if( aComment.Len() && SbiGood( r ) )
294 {
295 nPos = SbiOpenRecord( r, B_COMMENT, 1 );
296 r.WriteByteString( aComment, eCharSet );
297 //r << aComment;
298 SbiCloseRecord( r, nPos );
299 }
300 // Source?
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 284 unchanged lines hidden (view full) ---

293 if( aComment.Len() && SbiGood( r ) )
294 {
295 nPos = SbiOpenRecord( r, B_COMMENT, 1 );
296 r.WriteByteString( aComment, eCharSet );
297 //r << aComment;
298 SbiCloseRecord( r, nPos );
299 }
300 // Source?
301 if( aOUSource.getLength() && SbiGood( r ) )
301 if( !aOUSource.isEmpty() && SbiGood( r ) )
302 {
303 nPos = SbiOpenRecord( r, B_SOURCE, 1 );
304 String aTmp;
305 sal_Int32 nLen = aOUSource.getLength();
306 const sal_Int32 nMaxUnitSize = STRING_MAXLEN - 1;
307 if( nLen > STRING_MAXLEN )
308 aTmp = aOUSource.copy( 0, nMaxUnitSize );
309 else

--- 231 unchanged lines hidden ---
302 {
303 nPos = SbiOpenRecord( r, B_SOURCE, 1 );
304 String aTmp;
305 sal_Int32 nLen = aOUSource.getLength();
306 const sal_Int32 nMaxUnitSize = STRING_MAXLEN - 1;
307 if( nLen > STRING_MAXLEN )
308 aTmp = aOUSource.copy( 0, nMaxUnitSize );
309 else

--- 231 unchanged lines hidden ---