diff options
| author | Jabier Arraiza <jabier.arraiza@marker.es> | 2017-10-24 23:13:38 +0000 |
|---|---|---|
| committer | Jabier Arraiza <jabier.arraiza@marker.es> | 2017-10-24 23:13:38 +0000 |
| commit | 07bc5811acd5244febcf450ea3012b3e8bd37158 (patch) | |
| tree | 22f1e765aa989c65dea46d3292e6ccba09f17c83 /src/sp-root.cpp | |
| parent | Add progressbar to all actions (diff) | |
| parent | Give drawing a reasonable(?) default size if dimensions are in % and there is... (diff) | |
| download | inkscape-07bc5811acd5244febcf450ea3012b3e8bd37158.tar.gz inkscape-07bc5811acd5244febcf450ea3012b3e8bd37158.zip | |
Merge branch 'master' into SymbolsSearch
Diffstat (limited to 'src/sp-root.cpp')
| -rw-r--r-- | src/sp-root.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sp-root.cpp b/src/sp-root.cpp index 9ea1aa976..3f31588cc 100644 --- a/src/sp-root.cpp +++ b/src/sp-root.cpp @@ -245,12 +245,12 @@ void SPRoot::setRootDimensions() } else { - if( !this->width._set ) { - this->width.set( SVGLength::PX, 100, 100 ); // Random default + if( !this->width._set || this->width.unit == SVGLength::PERCENT) { + this->width.set( SVGLength::PX, 300, 300 ); // CSS/SVG default } - if( !this->height._set ) { - this->height.set( SVGLength::PX, 100, 100 ); // Random default + if( !this->height._set || this->height.unit == SVGLength::PERCENT) { + this->height.set( SVGLength::PX, 150, 150 ); // CSS/SVG default } } |
