diff options
author | Rene Engelhard <rene@debian.org> | 2011-01-09 20:45:46 +0100 |
---|---|---|
committer | Rene Engelhard <rene@debian.org> | 2011-01-09 22:27:14 +0100 |
commit | 53f53717db2106313507d9c4c9d222d5c0b18179 (patch) | |
tree | f03a0e58924b3facfc2a09826fac18477660530c | |
parent | 46bf8d4d5e0e45ce632330289516db4af4729d33 (diff) |
fix nsplugin for LibreOffice name
- OpenOffice path -> LibreOffice path
- only split "LibreOffice path [...] out with OSL_DEBUG_LEVEL > 0
Signed-off-by: Caolan McNamara <caolanm@redhat.com>
-rw-r--r-- | extensions/source/nsplugin/source/so_env.cxx | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/extensions/source/nsplugin/source/so_env.cxx b/extensions/source/nsplugin/source/so_env.cxx index 2dd4f8f27..8f8e436f0 100644 --- a/extensions/source/nsplugin/source/so_env.cxx +++ b/extensions/source/nsplugin/source/so_env.cxx @@ -205,7 +205,9 @@ int nspluginOOoModuleHook (void** aResult) strcpy (realFileName, libFileName); } - fprintf (stderr, "OpenOffice path before fixup is '%s'\n", realFileName); +#if OSL_DEBUG_LEVEL > 0 + fprintf (stderr, "LibreOffice path before fixup is '%s'\n", realFileName); +#endif if (realFileName[0] != '/') { /* a relative sym-link and we need to get an absolute path */ @@ -224,8 +226,10 @@ int nspluginOOoModuleHook (void** aResult) *aResult = realFileName; - fprintf (stderr, "OpenOffice path is '%s'\n", realFileName); - +#if OSL_DEBUG_LEVEL > 0 + fprintf (stderr, "LibreOffice path is '%s'\n", realFileName); +#endif + return 0; } #endif |