diff options
author | Eike Rathke <erack@redhat.com> | 2014-07-11 12:25:58 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2014-07-11 12:28:56 +0200 |
commit | 972c92c84e6f95e8fa8818794280a16e681e5edd (patch) | |
tree | bbe580c4f3cbd2d4396ea62d46b2ebcbafb1d05c | |
parent | 2a17daf8a1fb1e83c11fd4c74da62518b27bb025 (diff) |
CID#982304 logically dead code
Change-Id: I8ffc8249a4d1b7530ee208cf84b48af832758a4d
-rw-r--r-- | sc/source/ui/docshell/docsh8.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sc/source/ui/docshell/docsh8.cxx b/sc/source/ui/docshell/docsh8.cxx index 570e0d605dc0..ef8e78bd0134 100644 --- a/sc/source/ui/docshell/docsh8.cxx +++ b/sc/source/ui/docshell/docsh8.cxx @@ -686,11 +686,20 @@ void lcl_GetColumnTypes( } else { +#if 1 + // Adjust length to predefined precision. + nLen = nLen + ( nPrecision - nPrec ); +#else + /* If the above override for (nPrecision < nPrec) was not in place then + * nPrecision could be 0 and this would be the code path to correctly + * calculate nLen. But as is, nPrecision is never 0 here, see CID#982304 */ + // Adjust length to predefined precision. if ( nPrecision ) nLen = nLen + ( nPrecision - nPrec ); else nLen -= nPrec+1; // also remove the decimal separator +#endif } } if (nFieldLen < nLen) |