dba33h: #i112659# ensure bound image controls never embed their image in the surrounding document

This commit is contained in:
Frank Schoenheit [fs]
2010-08-26 12:02:20 +02:00
parent 96a48f7977
commit 93f90c4e7d

View File

@@ -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;