On Mon, 13 Sep 1999 [EMAIL PROTECTED] wrote:
> On Mon, Sep 13, 1999 at 04:22:59PM +0200, Olaf Deppe wrote:
>
> > sufficient to patch figinset.C .
> > Three changes (see appended diff list) are needed:
>
> No appended diff list here.
>
Sorry, I'll try it again with this mail.
Ole
--
[EMAIL PROTECTED] PGP key ID 065AF6D5 [EMAIL PROTECTED]
phone/fax: +49 40 8998-3153 / 8998-3092 +972 8 934-2248 / 936-2745
*** figinset.C.orig Fri Jul 23 18:44:23 1999
--- figinset.C Mon Sep 13 16:07:27 1999
***************
*** 534,545 ****
"%g %g translate\n"
"%g rotate\n"
"%g %g translate\n"
! "%g %g scale\n"
"%d %d translate\nend\n",
p->data->wid / 2.0, p->data->hgh / 2.0,
p->data->angle,
- (p->data->raw_wid / 2.0), -(p->data->raw_hgh / 2.0),
! p->rx / 72.0, p->ry / 72.0,
-p->ofsx, -p->ofsy
);
--- 534,545 ----
"%g %g translate\n"
"%g rotate\n"
"%g %g translate\n"
! //Dp "%g %g scale\n" Rescale through property!
"%d %d translate\nend\n",
p->data->wid / 2.0, p->data->hgh / 2.0,
p->data->angle,
- (p->data->raw_wid / 2.0), -(p->data->raw_hgh / 2.0),
! //Dp p->rx / 72.0, p->ry / 72.0,
-p->ofsx, -p->ofsy
);
***************
*** 551,560 ****
figinset_canvas), p->data->bitmap);
// now set up ghostview property on a window
! sprintf(tbuf, "0 0 0 0 %d %d 72 72 0 0 0 0",
! p->data->wid, p->data->hgh);
//#warning BUG seems that the only bug here might be the hardcoded dpi.. Bummer!
!
if (lyxerr.debugging()) {
lyxerr.print(LString("Will set GHOSTVIEW"
" property to [") +
--- 551,566 ----
figinset_canvas), p->data->bitmap);
// now set up ghostview property on a window
! //Dp( do the rescaling HERE
! // sprintf(tbuf, "0 0 0 0 %d %d 72 72 0 0 0 0",
! // p->data->wid, p->data->hgh);
! sprintf(tbuf, "0 0 0 0 %d %d %g %g 0 0 0 0",
! int(p->data->raw_wid*72./p->rx+.5),
! int(p->data->raw_hgh*72./p->ry+.5),
! p->rx, p->ry);
//#warning BUG seems that the only bug here might be the hardcoded dpi.. Bummer!
! // Dp) no longer!
!
if (lyxerr.debugging()) {
lyxerr.print(LString("Will set GHOSTVIEW"
" property to [") +
***************
*** 1713,1721 ****
if (fname.empty()) return;
! FilePtr f(fname, FilePtr::read);
!
! if (!f()) return; // file not found !!!!
/* defaults to A4 page */
psx = 0;
--- 1719,1735 ----
if (fname.empty()) return;
! //Dp( First try bb file
! // FilePtr f(fname, FilePtr::read);
! // if (!f()) return; // file not found !!!!
! FilePtr f(ChangeExtension(fname,".bb",false), FilePtr::read);
! if (!f()){
! f.reopen(ChangeExtension(fname,".eps.bb",false), FilePtr::read);
! if (!f()){
! f.reopen(fname, FilePtr::read);
! if (!f()) return; // file not found !!!!
! }};
! //Dp)
/* defaults to A4 page */
psx = 0;