Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


On Sun, Apr 17, 2011 at 08:51:31AM +0530, Muthu Subramanian K <sumuthu@novell.com> wrote:
hmm...no idea on this one...I haven't touched the code in a long time now...
you would want to diff the desktop module and see?

As Andreas points out, it seems the problem is that in 3.3 -conver-to
implied -headless, in 3.4 it does not.

The attached patch fixes the issue for me. Does it look sane?

Thanks.
From 73290beeff9e0cd4e67065aec6ba869fac2e7605 Mon Sep 17 00:00:00 2001
From: Miklos Vajna <vmiklos@frugalware.org>
Date: Sun, 17 Apr 2011 22:01:19 +0200
Subject: [PATCH] Make -conver-to imply -headless

---
 desktop/source/app/cmdlineargs.cxx |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/desktop/source/app/cmdlineargs.cxx b/desktop/source/app/cmdlineargs.cxx
index 817a43f..b340d59 100755
--- a/desktop/source/app/cmdlineargs.cxx
+++ b/desktop/source/app/cmdlineargs.cxx
@@ -290,6 +290,8 @@ void CommandLineArgs::ParseCommandLine_Impl( Supplier& supplier )
                         bOpenEvent = false;
                         bConversionEvent = true;
                         bConversionParamsEvent = true;
+                        SetBoolParam_Impl( CMD_BOOLPARAM_HEADLESS, sal_True );
+                        SetBoolParam_Impl( CMD_BOOLPARAM_INVISIBLE, sal_True );
                     }
                     else if ( 
oArg.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("print-to-file")))
                     {
-- 
1.7.4.4

Attachment: pgpR7MzevbLdV.pgp
Description: PGP signature


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.