Bugzilla – Attachment 67486 Details for
Bug 55185
FILEOPEN: hang when opening particular Word document
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Crude hack to prevent hang
libo_doc_import_hang.patch (text/plain), 889 bytes, created by
libreoffice
on 2012-09-21 08:59:24 UTC
(
hide
)
Description:
Crude hack to prevent hang
Filename:
MIME Type:
Creator:
libreoffice
Created:
2012-09-21 08:59:24 UTC
Size:
889 bytes
patch
obsolete
>diff --git a/sw/source/core/text/itrform2.cxx b/sw/source/core/text/itrform2.cxx >index 8cf1e07..849aa2c 100644 >--- a/sw/source/core/text/itrform2.cxx >+++ b/sw/source/core/text/itrform2.cxx >@@ -430,6 +430,9 @@ void SwTxtFormatter::BuildPortions( SwTxtFormatInfo &rInf ) > SwTwips nUnderLineStart = 0; > rInf.Y( Y() ); > >+ xub_StrLen nPrevLastIdx = -1; >+ xub_StrLen nLastIdx = rInf.GetIdx(); >+ > while( pPor && !rInf.IsStop() ) > { > OSL_ENSURE( rInf.GetLen() < STRING_LEN && >@@ -713,6 +716,15 @@ void SwTxtFormatter::BuildPortions( SwTxtFormatInfo &rInf ) > CalcAscent( rInf, pPor ); > > InsertPortion( rInf, pPor ); >+ >+ if (rInf.GetIdx() == nPrevLastIdx) >+ { >+ pPor = NULL; >+ break; >+ } >+ nPrevLastIdx = nLastIdx; >+ nLastIdx = rInf.GetIdx(); >+ > pPor = NewPortion( rInf ); > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 55185
:
67485
| 67486 |
67725
|
159660