uwestoehr wrote:
> lyx2lyx: lyx_1_6.py, parser_tools.py:
>    add a conversion routine for the PDF options, fixes
> http://bugzilla.lyx.org/show_bug.cgi?id=4612

This routine has a bug: the \use_hyperref tyg is only removed if hyperref was 
selected. The attached patch fixes it for me.

I'll commit as soon as aussie is up again.

Jürgen
Index: lib/lyx2lyx/lyx_1_6.py
===================================================================
--- lib/lyx2lyx/lyx_1_6.py	(Revision 24251)
+++ lib/lyx2lyx/lyx_1_6.py	(Arbeitskopie)
@@ -386,10 +386,10 @@
         pagebackref = ""
         pagemode = ""
         otheroptions = ""
-        i = find_token(document.header, "\\use_hyperref true", i)
+        i = find_token(document.header, "\\use_hyperref", i)
         if i != -1:
+            hyperref = get_value(document.header, "\\use_hyperref", i) == 'true'
             del document.header[i]
-            hyperref = True
         i = find_token(document.header, "\\pdf_store_options", i)
         if i != -1:
             del document.header[i]

Reply via email to