Apache OpenOffice (AOO) Bugzilla – Issue 122121
[sidebar]Line panel-line color on sidebar will not be blank when select many different color line.
Last modified: 2022-10-28 12:54:20 UTC
build: steps: 1.new a document 2.insert two line object,and set different color via side bar 3.select the two line object and check the color box defect: the line color don't be blank.
Trunk build: r1413470
ALG: Missing infos: Application, OS. Ckecked on Draw/Impress, color shows neutral (white) Checked in calc, color gets disabled Checked in Writer, color shows neutral (white) Intended behaviour is to show neutral color; disabling would not allow to select a color for both selected lines. Checking why calc behaviour is different...
ALG: Sc sends a of SFX_ITEM_DISABLED while the other apps send a SFX_ITEM_DONTCARE (as expected). Checking why Sc sends a SFX_ITEM_DISABLED...
ALG: Reason is that in ScDrawShell::GetDrawAttrState the ItemSet fetched from the selected objects is not just copied, but 'Put' to the target ItemSet by using rSet.Put( pDrView->GetAttrFromMarked(sal_False) );. This merges the items using bInvalidAsDefault == true in SfxItemSet::Put, so every item which is on state invalid will be put to state default. Some lines below all defaults for line and fill attr get set from default to disabled. I think the 'Put' should either be replaced by an assignment or be called with bInvalidAsDefault == false, checking...
ALG: Works as expected. Also noticed that the LineEnds are not adapted in Sc and Sw when LineWidth changes (as in Draw/Impress and in the LineStyle dialog)...
"alg" committed SVN revision 1471393 into trunk: i122121 Adapted ScDrawShell::GetDrawAttrState
ALG: Comitted. done.
"alg" committed SVN revision 1471471 into trunk: i122121 moded automatic StartEnd adaption to svx