~ubuntu-branches/ubuntu/trusty/libavg/trusty-proposed

« back to all changes in this revision

Viewing changes to src/player/CanvasNode.cpp

  • Committer: Package Import Robot
  • Author(s): OXullo Intersecans
  • Date: 2011-12-06 22:44:56 UTC
  • mfrom: (1.1.6)
  • Revision ID: package-import@ubuntu.com-20111206224456-qc7250z3ya1vi8s9
Tags: 1.7.0-0ubuntu1
* New upstream release (LP: #899183)
* Remove patches 0002-libav-0.7.patch, 0003-fglrx-segfault-on-startup.patch
  now merged to upstream
* Remove unnecessary .la files
* Update debian/watch file
* Fix debian/copyright dep-5 compliancy
* Update standards to version 3.9.2
* Add man pages for avg_checktouch, avg_checkvsync, avg_showsvg
* Minor debian/rules enhancement
* Add librsvg2-dev, libgdk-pixbuf2.0-dev to Build-Depends
* Proper transition to dh_python2

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
//
2
2
//  libavg - Media Playback Engine. 
3
 
//  Copyright (C) 2003-2008 Ulrich von Zadow
 
3
//  Copyright (C) 2003-2011 Ulrich von Zadow
4
4
//
5
5
//  This library is free software; you can redistribute it and/or
6
6
//  modify it under the terms of the GNU Lesser General Public
25
25
#include "NodeDefinition.h"
26
26
 
27
27
#include "../base/FileHelper.h"
 
28
#include "../base/Exception.h"
28
29
 
29
30
using namespace std;
30
31
 
40
41
    : DivNode(args)
41
42
{
42
43
    args.setMembers(this);
 
44
    if (getSize() == DPoint(0, 0)) {
 
45
        throw (Exception(AVG_ERR_OUT_OF_RANGE,
 
46
                "<avg> and <canvas> node width and height attributes are mandatory."));
 
47
    }
43
48
}
44
49
 
45
50
CanvasNode::~CanvasNode()