~inkscape-pybind/inkscape/pybind

« back to all changes in this revision

Viewing changes to src/svg-view.cpp

  • Committer: Thinker Li
  • Date: 2011-04-26 01:58:22 UTC
  • Revision ID: thinker@codemud.net-20110426015822-wt6d9du388zmjdbx
Fix issue of scaling document.

 - When size of a document is changed, SPSVGView does not scale correctly.

 - It sets width and height to _hscale and _vscale of SPSVGView, it is
   incorrect.  _width and _height should be setted instead.

Show diffs side-by-side

added added

removed removed

Lines of Context:
221
221
void
222
222
SPSVGView::onDocumentResized (gdouble width, gdouble height)
223
223
{
224
 
    setScale (width, height);
 
224
    _width = width;
 
225
    _height = height;
225
226
    doRescale (!_rescale);
226
227
}
227
228