summaryrefslogtreecommitdiff
path: root/sw/source/core/layout/trvlfrm.cxx
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@suse.cz>2013-03-19 14:25:39 +0100
committerMiklos Vajna <vmiklos@suse.cz>2013-03-19 14:28:44 +0100
commite76e2c4ce76457e518b007b970e1b0c2742f8d6e (patch)
tree0c4844795137d0e3f3921535539fd49583421732 /sw/source/core/layout/trvlfrm.cxx
parent5bb4a2ba1d8a6b98720868786e552aa8fd2a22eb (diff)
add SwField::IsClickable and use it from SwWrtShell and SwPageFrm
Change-Id: I3d856dc11297b2ad73859ff9c2d529e8cd4727b2
Diffstat (limited to 'sw/source/core/layout/trvlfrm.cxx')
-rw-r--r--sw/source/core/layout/trvlfrm.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/layout/trvlfrm.cxx b/sw/source/core/layout/trvlfrm.cxx
index a1ace40aabdf..8f4f0bef6a7e 100644
--- a/sw/source/core/layout/trvlfrm.cxx
+++ b/sw/source/core/layout/trvlfrm.cxx
@@ -294,7 +294,7 @@ sal_Bool SwPageFrm::GetCrsrOfst( SwPosition *pPos, Point &rPoint,
}
bool bConsiderBackground = true;
- // If the text position if a macro field, then that should have priority.
+ // If the text position is a clickable field, then that should have priority.
if (pTextNd->IsTxtNode())
{
SwTxtNode* pTxtNd = pTextNd->GetTxtNode();
@@ -302,7 +302,7 @@ sal_Bool SwPageFrm::GetCrsrOfst( SwPosition *pPos, Point &rPoint,
if (pTxtAttr)
{
const SwField* pField = pTxtAttr->GetFld().GetFld();
- if (pField->Which() == RES_MACROFLD)
+ if (pField->IsClickable())
bConsiderBackground = false;
}
}