Bugzilla – Attachment 45508 Details for
Bug 33960
cross reference to a list number, dot bug
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to implement same behaviour as MS Word
sw-patch-for-33960.diff (text/plain), 1006 bytes, created by
Troy Rollo
on 2011-04-12 03:03:52 UTC
(
hide
)
Description:
Patch to implement same behaviour as MS Word
Filename:
MIME Type:
Creator:
Troy Rollo
Created:
2011-04-12 03:03:52 UTC
Size:
1006 bytes
patch
obsolete
>diff --git a/sw/source/core/doc/number.cxx b/sw/source/core/doc/number.cxx >index 95ea5c8..d7df858 100644 >--- a/sw/source/core/doc/number.cxx >+++ b/sw/source/core/doc/number.cxx >@@ -770,7 +770,15 @@ String SwNumRule::MakeRefNumString( const SwNodeNum& rNodeNum, > pWorkingNodeNum->GetTxtNode() && > pWorkingNodeNum->GetTxtNode()->HasNumber() ) ) > { >- aRefNumStr.Insert( MakeNumString( pWorkingNodeNum->GetNumberVector() ), 0 ); >+ String aPrevStr = MakeNumString( pWorkingNodeNum->GetNumberVector() ); >+ int nLen = aPrevStr.Len(); >+ >+ if ( nLen > 0 && aPrevStr.GetChar(nLen - 1) == '.' && >+ ( aRefNumStr.Len() == 0 || >+ aRefNumStr.GetChar(0) == '(' ) >+ ) >+ aPrevStr.Erase( nLen - 1, 1 ); >+ aRefNumStr.Insert( aPrevStr, 0 ); > } > else if ( aRefNumStr.Len() > 0 ) > {
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 33960
:
45508
|
82777
|
82778