On Sun, Apr 17, 2011 at 08:51:31AM +0530, Muthu Subramanian K 
<sumu...@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 <vmik...@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: pgpHcNAgGRTXF.pgp
Description: PGP signature

_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice

Reply via email to