[Libreoffice-commits] .: sc/source
Kohei Yoshida
kohei at kemper.freedesktop.org
Tue Feb 15 07:49:42 PST 2011
sc/source/filter/xml/XMLStylesExportHelper.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit f31c1c268d4051a682bdc9414d346b33e5d16bce
Author: Kohei Yoshida <kyoshida at novell.com>
Date: Tue Feb 15 10:47:09 2011 -0500
Fixed an incorrect exporting of row styles.
flat_segment_tree's end position is not inclusive. Let's reflect that
when checking cached data range.
diff --git a/sc/source/filter/xml/XMLStylesExportHelper.cxx b/sc/source/filter/xml/XMLStylesExportHelper.cxx
index 5120ac2..f686c26 100644
--- a/sc/source/filter/xml/XMLStylesExportHelper.cxx
+++ b/sc/source/filter/xml/XMLStylesExportHelper.cxx
@@ -1208,7 +1208,7 @@ ScRowStyles::Cache::Cache() :
bool ScRowStyles::Cache::hasCache(sal_Int32 nTable, sal_Int32 nField) const
{
- return mnTable == nTable && mnStart <= nField && nField <= mnEnd;
+ return mnTable == nTable && mnStart <= nField && nField < mnEnd;
}
ScRowStyles::ScRowStyles()
More information about the Libreoffice-commits
mailing list