https://issues.apache.org/ooo/show_bug.cgi?id=122387

            Bug ID: 122387
        Issue Type: DEFECT
           Summary: [sidebar] Font colour of text inside a shape in Writer
                    not set by toolbar item
           Product: General
           Version: AOO400-dev
          Hardware: All
                OS: All
            Status: CONFIRMED
          Keywords: regression
          Severity: normal
          Priority: P3
         Component: code
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
            Blocks: 121420

- New Writer document
- Insert a shape
- Write some text inside the shape
- Try to change the text colour with the "Font Color" toolbar item in the Text
properties panel of the Sidebar

The colour does not change.

On TextPropertyPanel::TextPropertyPanel


        mpToolBoxFontColor(ControlFactory::CreateToolBox(
                mpToolBoxFontColorBackground.get(),
                rContext.GetApplication_DI() ==
sfx2::sidebar::EnumContext::Application_WriterVariants
                    ? SVX_RES(TB_FONTCOLOR_SW)
                    : SVX_RES(TB_FONTCOLOR),
                rxFrame)),

when the context is Writer, the controller is created for ".uno:FontColor", as
defined in ToolBox TB_FONTCOLOR_SW.

This works for text in text context but not for drawing context. In Writer,
font colour of text inside shape can be set with ".uno:Color", not with
".uno:FontColor", this command is the one on the toolbar (right-click on the
drawing toolbar, select "Visible Buttons" and set "Font Color" visible).

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.

Reply via email to