AccessibleStaticTextBase.cxx (07a3d7f1) | AccessibleStaticTextBase.cxx (f1d3244e) |
---|---|
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 --- 346 unchanged lines hidden (view full) --- 355 return aRes + nEEIndex.nIndex; 356 } 357 358 void AccessibleStaticTextBase_Impl::CorrectTextSegment( TextSegment& aTextSegment, 359 int nPara ) const 360 { 361 // Keep 'invalid' values at the TextSegment 362 if( aTextSegment.SegmentStart != -1 && | 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 --- 346 unchanged lines hidden (view full) --- 355 return aRes + nEEIndex.nIndex; 356 } 357 358 void AccessibleStaticTextBase_Impl::CorrectTextSegment( TextSegment& aTextSegment, 359 int nPara ) const 360 { 361 // Keep 'invalid' values at the TextSegment 362 if( aTextSegment.SegmentStart != -1 && |
363 aTextSegment.SegmentStart != -1 ) | 363 aTextSegment.SegmentEnd != -1 ) |
364 { 365 // #112814# Correct TextSegment by paragraph offset 366 sal_Int32 nOffset(0); 367 int i; 368 for(i=0; i<nPara; ++i) 369 nOffset += GetParagraph(i).getCharacterCount(); 370 371 aTextSegment.SegmentStart += nOffset; --- 804 unchanged lines hidden --- | 364 { 365 // #112814# Correct TextSegment by paragraph offset 366 sal_Int32 nOffset(0); 367 int i; 368 for(i=0; i<nPara; ++i) 369 nOffset += GetParagraph(i).getCharacterCount(); 370 371 aTextSegment.SegmentStart += nOffset; --- 804 unchanged lines hidden --- |