Bugzilla – Attachment 59660 Details for
Bug 35042
Previous color applied instead of latest "no fill" for "highlighting".
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
PATCH
patch35042.patch (text/plain), 1.34 KB, created by
Aldo Román Nureña
on 2012-04-08 20:09:07 UTC
(
hide
)
Description:
PATCH
Filename:
MIME Type:
Creator:
Aldo Román Nureña
Created:
2012-04-08 20:09:07 UTC
Size:
1.34 KB
patch
obsolete
>diff --git a/sw/source/ui/shells/textsh1.cxx b/sw/source/ui/shells/textsh1.cxx >index 1e8ef39..c2a0cf1 100644 >--- a/sw/source/ui/shells/textsh1.cxx >+++ b/sw/source/ui/shells/textsh1.cxx >@@ -1120,17 +1120,20 @@ void SwTextShell::Execute(SfxRequest &rReq) > if(pItem) > { > aSet = ((const SvxColorItem*)pItem)->GetValue(); >- rEdtWin.SetTextBackColor(aSet); >+ rEdtWin.SetTextBackColor(aSet); //select last color > } >+ else >+ rEdtWin.SetTextBackColor(Color(COL_TRANSPARENT)); //if last was "no fill" >+ > if(!pApply && (rWrtSh.HasSelection() || rReq.IsAPI())) > { > SvxBrushItem aBrushItem(RES_CHRATR_BACKGROUND); > if(pItem) >- aBrushItem.SetColor(aSet); >+ aBrushItem.SetColor(aSet); //set the selected color > else >- aBrushItem.SetColor(Color(COL_TRANSPARENT)); >+ aBrushItem.SetColor(Color(COL_TRANSPARENT));//set "no fill" color > rWrtSh.SetAttr( aBrushItem ); >- } >+ } > else if(!pApply || pApply->nColor != SID_ATTR_CHAR_COLOR_BACKGROUND_EXT) > { > GetView().GetViewFrame()->GetDispatcher()->Execute(SID_ATTR_CHAR_COLOR_BACKGROUND_EXT);
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 35042
: 59660