dba33h: #i112659# ensure bound image controls never embed their image in the surrounding document
This commit is contained in:
@@ -800,6 +800,11 @@ bool OImageControlControl::implInsertGraphics()
|
||||
implClearGraphics( sal_False );
|
||||
sal_Bool bIsLink = sal_False;
|
||||
xController->getValue(ExtendedFilePickerElementIds::CHECKBOX_LINK, 0) >>= bIsLink;
|
||||
// Force bIsLink to be TRUE if we're bound to a field. Though we initialized the file picker with IsLink=TRUE
|
||||
// in this case, and disabled the respective control, there might be picker implementations which do not
|
||||
// respect this, and return IsLink=FALSE here. In this case, "normalize" the flag.
|
||||
// #i112659# / 2010-08-26 / frank.schoenheit@oracle.com
|
||||
bIsLink |= bHasField;
|
||||
if ( !bIsLink )
|
||||
{
|
||||
Graphic aGraphic;
|
||||
|
Reference in New Issue
Block a user