summaryrefslogtreecommitdiffstats
path: root/writerfilter/source/dmapper/BorderHandler.cxx
diff options
context:
space:
mode:
authorOliver Specht <os@openoffice.org>2007-05-24 10:31:43 +0000
committerOliver Specht <os@openoffice.org>2007-05-24 10:31:43 +0000
commit56cee98396d3ead22f1ff60ca9bbbfade3d9565d (patch)
treebcc559c84dc1cc7f90809c84bef249dcc0e65d3c /writerfilter/source/dmapper/BorderHandler.cxx
parentfootnotes and endnotes (diff)
downloadcore-56cee98396d3ead22f1ff60ca9bbbfade3d9565d.tar.gz
core-56cee98396d3ead22f1ff60ca9bbbfade3d9565d.zip
don't apply default borders
Diffstat (limited to 'writerfilter/source/dmapper/BorderHandler.cxx')
-rw-r--r--writerfilter/source/dmapper/BorderHandler.cxx12
1 files changed, 8 insertions, 4 deletions
diff --git a/writerfilter/source/dmapper/BorderHandler.cxx b/writerfilter/source/dmapper/BorderHandler.cxx
index 7515c55457fb..a201b664da20 100644
--- a/writerfilter/source/dmapper/BorderHandler.cxx
+++ b/writerfilter/source/dmapper/BorderHandler.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: BorderHandler.cxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: os $ $Date: 2007-05-03 06:25:37 $
+ * last change: $Author: os $ $Date: 2007-05-24 11:31:43 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -166,8 +166,12 @@ PropertyMapPtr BorderHandler::getProperties()
META_PROP_VERTICAL_BORDER
};
PropertyMapPtr pPropertyMap(new PropertyMap);
- for( sal_Int32 nProp = 0; nProp < BORDER_COUNT; ++nProp)
- pPropertyMap->Insert( aPropNames[nProp], uno::makeAny( m_aBorderLines[nProp] ) );
+ // don't fill in default properties
+ if( m_nCurrentBorderPosition )
+ {
+ for( sal_Int32 nProp = 0; nProp < BORDER_COUNT; ++nProp)
+ pPropertyMap->Insert( aPropNames[nProp], uno::makeAny( m_aBorderLines[nProp] ) );
+ }
return pPropertyMap;
}
} //namespace dmapper