~ubuntu-branches/ubuntu/quantal/texmacs/quantal

« back to all changes in this revision

Viewing changes to src/Typeset/Boxes/Modifier/modifier_boxes.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Atsuhito KOHDA, Kamaraju Kusumanchi, kohda
  • Date: 2008-04-06 15:11:41 UTC
  • mfrom: (1.1.7 upstream) (4.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080406151141-w0sg20jnv86mlt6f
Tags: 1:1.0.6.14-1
[Kamaraju Kusumanchi <kamaraju@gmail.com>]
* New upstream release
* 01_american.dpatch is updated
* Since thread support in guile-1.8 is now disabled, the segmentation faults
  should not arise anymore. More info at #439923. (Closes: #450499, #458685)
[kohda]
* This version fixed menu problem.  (Closes: #447083)
* Reverted orig.tar.gz to the upstream tarball.

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
}
41
41
 
42
42
void
43
 
modifier_box_rep::display (ps_device dev) {
44
 
  (void) dev;
 
43
modifier_box_rep::display (renderer ren) {
 
44
  (void) ren;
45
45
}
46
46
 
47
47
tree
181
181
 
182
182
static box
183
183
subbox (box b, path p) {
184
 
  if (nil (p)) return b;
 
184
  if (is_nil (p)) return b;
185
185
  return subbox (b[p->item], p->next);
186
186
}
187
187
 
231
231
path
232
232
shorter_box_rep::find_rip () {
233
233
  path p= modifier_box_rep::find_rip ();
234
 
  if (is_accessible (ip) && (!nil(p)) && (p->item > (pos+ len)))
 
234
  if (is_accessible (ip) && (!is_nil(p)) && (p->item > (pos+ len)))
235
235
    return descend (p->next, pos+ len);
236
236
  else return p;  
237
237
}
329
329
  SI rsup_correction () { return bs[0]->rsup_correction(); }
330
330
  SI sub_lo_base (int l) {
331
331
    // second test separates small and large big operators
332
 
    return (!nil (big_fn)) && ((y2-y1) <= 3*big_fn->yx)?
 
332
    return (!is_nil (big_fn)) && ((y2-y1) <= 3*big_fn->yx)?
333
333
      y1 - (l>0? 0: big_fn->yshift): box_rep::sub_lo_base (l); }
334
334
  SI sub_hi_lim (int l) {
335
335
    // second test separates small and large size big operators
336
 
    return (!nil (big_fn)) && ((y2-y1) <= 3*big_fn->yx)?
 
336
    return (!is_nil (big_fn)) && ((y2-y1) <= 3*big_fn->yx)?
337
337
      y1 - (l>0? 0: big_fn->yshift) +
338
338
        bs[0]->sub_hi_lim (l) - bs[0]->sub_lo_base (l):
339
339
      box_rep::sub_hi_lim (l); }
340
340
  SI sup_lo_base (int l) {
341
 
    if (nil (big_fn)) return box_rep::sup_lo_base (l);
 
341
    if (is_nil (big_fn)) return box_rep::sup_lo_base (l);
342
342
    SI syx= big_fn->yx * script (big_fn->size, 1) / big_fn->size;
343
343
    if ((y2-y1) <= 3*big_fn->yx) syx -= (l<0? 0: big_fn->yshift);
344
344
    return y2- syx; }