https://issues.apache.org/ooo/show_bug.cgi?id=122720
Bug ID: 122720
Issue Type: DEFECT
Summary: [FUP to 121917] Cleanup HasText and dangerous casts to
SdrTextObj
Product: General
Version: AOO400-dev
Hardware: All
OS: All
Status: CONFIRMED
Severity: normal
Priority: P3
Component: code
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
ALG: Follow-up to #121917#: To call HasText() which only exists on SdrTextObj
there are many cases which das SdrObjects of unknown type to SdrTextObj using
old, C++-style casts. This goes wrong e.g. when the SdrObject is a SdrVirtObj
from Writer. Better add HasText() to SdrObject virtual, add to SdrVirtObj
accordingly and add a tooling method which also adds checking of TextObject
types (from GetType()).
--
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.