diff options
author | Niklas Nebel <nn@openoffice.org> | 2000-12-11 10:30:49 +0000 |
---|---|---|
committer | Niklas Nebel <nn@openoffice.org> | 2000-12-11 10:30:49 +0000 |
commit | d5b4e1c8c16845687171431a866f159ab2ed6fd6 (patch) | |
tree | 02978741c79e4f69808fb217aa5c27b74b5a85e4 /sc/source/ui/docshell/arealink.cxx | |
parent | 022f2997ed82f28db111279f3454f2c5e78ad6a8 (diff) |
#81155# DataChanged: keep old area string
Diffstat (limited to 'sc/source/ui/docshell/arealink.cxx')
-rw-r--r-- | sc/source/ui/docshell/arealink.cxx | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/sc/source/ui/docshell/arealink.cxx b/sc/source/ui/docshell/arealink.cxx index 492dd9bb888f..51886fb1bc2a 100644 --- a/sc/source/ui/docshell/arealink.cxx +++ b/sc/source/ui/docshell/arealink.cxx @@ -2,9 +2,9 @@ * * $RCSfile: arealink.cxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: nn $ $Date: 2000-10-16 08:08:57 $ + * last change: $Author: nn $ $Date: 2000-12-11 11:30:49 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -155,6 +155,17 @@ void __EXPORT ScAreaLink::DataChanged(SvData& rData) if ( aFilter.Copy(0,nPreLen) == aAppPrefix ) aFilter.Erase(0,nPreLen); + // #81155# dialog doesn't set area, so keep old one + if ( !aArea.Len() ) + { + aArea = aSourceArea; + + // adjust in dialog: + String aLinkName; + MakeLnkName( aLinkName, NULL, aFile, aArea, &aFilter ); + SetName( new SvLinkName( aLinkName ) ); + } + Refresh(aFile,aFilter,aArea); } } |