https://bz.apache.org/ooo/show_bug.cgi?id=127897

          Issue ID: 127897
        Issue Type: DEFECT
           Summary: Possible access to unintended macro in
                    "openoffice/main/cui/source/tabpages/textattr.cxx"
                    line 247
           Product: General
           Version: 4.2.0-dev
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P5 (lowest)
         Component: code
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

While experimenting with a CodeSonar plugin we develop, we noticed a
potential issue in file "openoffice/main/cui/source/tabpages/textattr.cxx" line
247 function SvxTextAttrPage::Reset



// autogrowsize 
if ( rAttrs.GetItemState( SDRATTR_TEXT_AUTOGROWSIZE ) != SFX_ITEM_DONTCARE )
{
    aTsbAutoGrowSize.SetState( ( ( const SdrTextAutoGrowHeightItem&
)rAttrs.Get( SDRATTR_TEXT_AUTOGROWHEIGHT ) ). //HERE
                              GetValue() ? STATE_CHECK : STATE_NOCHECK );
    aTsbAutoGrowSize.EnableTriState( sal_False );
}

Shouldn't SDRATTR_TEXT_AUTOGROWSIZE be used instead of
SDRATTR_TEXT_AUTOGROWHEIGHT? 

Thanks,
Petru-Florin Mihancea

-- 
You are receiving this mail because:
You are the assignee for the issue.

Reply via email to