~ubuntu-branches/ubuntu/precise/ipe/precise

« back to all changes in this revision

Viewing changes to src/ipelets/image/image.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Steve M. Robbins
  • Date: 2011-02-15 23:06:48 UTC
  • mfrom: (4.1.8 sid)
  • Revision ID: james.westby@ubuntu.com-20110215230648-ddivgj61o8k7et79
Tags: 7.0.14-1
* New upstream.  Update control, rules.

* libipe7.0.13.install:
* ipe.links: Remove.  Replace with explicit calls in rules using
  $(IPEVERS).  Fixes lua link.  Closes: #611560.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
/*
5
5
 
6
6
    This file is part of the extensible drawing editor Ipe.
7
 
    Copyright (C) 1993-2009  Otfried Cheong
 
7
    Copyright (C) 1993-2010  Otfried Cheong
8
8
 
9
9
    Ipe is free software; you can redistribute it and/or modify it
10
10
    under the terms of the GNU General Public License as published by
292
292
    bitmap.setColorKey(colorKey);
293
293
 
294
294
  Image *obj = new Image(computeRect(), bitmap);
295
 
  iData->iPage->append(ESecondarySelected, iData->iLayer, obj);
 
295
  iData->iPage->deselectAll();
 
296
  iData->iPage->append(EPrimarySelected, iData->iLayer, obj);
296
297
  return true;
297
298
}
298
299
 
426
427
                iBitsPerComponent, Buffer(a.data(), a.size()),
427
428
                Bitmap::EDCTDecode);
428
429
  Image *obj = new Image(computeRect(), bitmap);
429
 
  iData->iPage->append(ESecondarySelected, iData->iLayer, obj);
 
430
  iData->iPage->deselectAll();
 
431
  iData->iPage->append(EPrimarySelected, iData->iLayer, obj);
430
432
  return true;
431
433
}
432
434