[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lyx-devel
Subject:    Re: LinkBack support (on MacOS)
From:       Stephan Witt <st.witt () gmx ! net>
Date:       2018-09-25 15:21:35
Message-ID: AFCFB87D-4276-43D2-8719-D79680182D72 () gmx ! net
[Download RAW message or body]

Am 25.09.2018 um 17:10 schrieb Jürgen Spitzmüller <spitz@lyx.org>:
> 
> Am Freitag, den 21.09.2018, 15:55 +0200 schrieb pdv:
>> I came across a deprecated call in the LinkBack code, and discovered 
>> that LinkBack acctually doesn't work (anymore).
>> Apparently nobody uses this?
> 
> Apparently. I only found this 8 year old bug related to LinkBack:
> https://www.lyx.org/trac/ticket/6961
> 
> 
>> When the pasteboard contains linkback-data lyx saves the pdf-data + 
>> linkback-data in a file with the .linkback extension and adds the
>> size 
>> of the pdf-data as a uint32.
>> 
>> When reading/rewriting back the size it's converted with 
>> NSSwapBigLongToHost() and NSSwapHostLongToBig() calls.
>> 
>> I suppose that the "Long" refers to 8 bytes.
>> 
>> Replacing the calls by the similar "Int" calls solves the problem.
>> 
>> LinkBack then works with LateXiT and with Omnigraffle.
>> 
>> Enclosed is a patch for this and for replacing the deprecated call.
> 
> Alas, I know nothing of this. Stephan?

I'll see if I can find the time.

Stephan=
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic