summaryrefslogtreecommitdiff
path: root/starmath/source/rect.cxx
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2005-10-05 14:03:08 +0000
committerKurt Zenker <kz@openoffice.org>2005-10-05 14:03:08 +0000
commit9c434f566b5c410d9866b68efaed4664096451ce (patch)
tree0b003746876a2ecd3b14b0b8e6d17fae1bb332e6 /starmath/source/rect.cxx
parent3d4ca8ed64ec40559b0c9e5b286e89dc7132b1e2 (diff)
INTEGRATION: CWS tl12 (1.15.2); FILE MERGED
2005/09/27 01:46:43 tl 1.15.2.2: RESYNC: (1.15-1.16); FILE MERGED 2005/05/02 08:44:10 tl 1.15.2.1: #i44468# have all documents use the same SmSymSetManager
Diffstat (limited to 'starmath/source/rect.cxx')
-rw-r--r--starmath/source/rect.cxx22
1 files changed, 4 insertions, 18 deletions
diff --git a/starmath/source/rect.cxx b/starmath/source/rect.cxx
index bc57e642d1e2..62b4b41941e3 100644
--- a/starmath/source/rect.cxx
+++ b/starmath/source/rect.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: rect.cxx,v $
*
- * $Revision: 1.16 $
+ * $Revision: 1.17 $
*
- * last change: $Author: rt $ $Date: 2005-09-07 15:11:19 $
+ * last change: $Author: kz $ $Date: 2005-10-05 15:03:08 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -252,21 +252,7 @@ void SmRect::Init(const OutputDevice &rDev, const SmFormat *pFormat,
const XubString &rText, USHORT nBorderWidth)
// get rectangle fitting for drawing 'rText' on OutputDevice 'rDev'
{
- SmRectCache *pRectCache = SM_MOD1()->GetRectCache();
- DBG_ASSERT(pRectCache, "Sm : NULL pointer");
-
- // build key for rectangle (to look up in cache for)
- const SmRectCache::Key aKey (rText, rDev.GetFont());
-
- const SmRect *pResult = pRectCache->Search(aKey);
- if (pResult)
- *this = *pResult;
- else
- { // build rectangle and put it in cache
- BuildRect(rDev, pFormat, rText, nBorderWidth);
- pResult = pRectCache->Add(aKey, *this);
- }
- DBG_ASSERT(pResult, "Sm : NULL pointer");
+ BuildRect(rDev, pFormat, rText, nBorderWidth);
}
@@ -746,7 +732,7 @@ BOOL SmGetGlyphBoundRect(const OutputDevice &rDev,
{
// since we format for the printer (where GetTextBoundRect will fail)
// we need a virtual device here.
- pGlyphDev = SM_MOD1()->GetRectCache()->GetVirDev();
+ pGlyphDev = &SM_MOD1()->GetDefaultVirtualDev();
}
const FontMetric aDevFM (rDev.GetFontMetric());