~ubuntu-branches/ubuntu/precise/inkscape/precise-updates

« back to all changes in this revision

Viewing changes to src/2geom/hvlinesegment.h

  • Committer: Bazaar Package Importer
  • Author(s): Alex Valavanis
  • Date: 2010-09-12 19:44:58 UTC
  • mfrom: (1.1.12 upstream) (45.1.3 maverick)
  • Revision ID: james.westby@ubuntu.com-20100912194458-4sjwmbl7dlsrk5dc
Tags: 0.48.0-1ubuntu1
* Merge with Debian unstable (LP: #628048, LP: #401567, LP: #456248, 
  LP: #463602, LP: #591986)
* debian/control: 
  - Ubuntu maintainers
  - Promote python-lxml, python-numpy, python-uniconvertor to Recommends.
  - Demote pstoedit to Suggests (universe package).
  - Suggests ttf-dejavu instead of ttf-bitstream-vera (LP: #513319)
* debian/rules:
  - Run intltool-update on build (Ubuntu-specific).
  - Add translation domain to .desktop files (Ubuntu-specific).
* debian/dirs:
  - Add usr/share/pixmaps.  Allow inkscape.xpm installation
* drop 50-poppler-API.dpatch (now upstream)
* drop 51-paste-in-unwritable-directory.dpatch (now upstream) 

Show diffs side-by-side

added added

removed removed

Lines of Context:
216
216
    {
217
217
        Point ip = initialPoint() * m;
218
218
        Point ep = finalPoint() * m;
219
 
        if (m.onlyScaleAndTranslation()) {
 
219
        if (ip[Y] == ep[Y]) {
220
220
            return new HLineSegment(ip[X], ep[X], ip[Y]);
221
221
        } else {
222
222
            return new LineSegment(ip, ep);
457
457
    {
458
458
        Point ip = initialPoint() * m;
459
459
        Point ep = finalPoint() * m;
460
 
        if (m.onlyScaleAndTranslation()) {
 
460
        if (ip[X] == ep[X]) {
461
461
            return new VLineSegment(ip[X], ip[Y], ep[Y]);
462
462
        } else {
463
463
            return new LineSegment(ip, ep);