diff options
| author | John Smith <john.smith7545@yahoo.com> | 2012-09-29 02:57:24 +0000 |
|---|---|---|
| committer | John Smith <john.smith7545@yahoo.com> | 2012-09-29 02:57:24 +0000 |
| commit | 1cb21cd6cfca11a693704c0e8047cce9ee6bd26b (patch) | |
| tree | 0d8aa47ac9370a46923bdb6f5b14c324a56b3a66 /src/ui/dialog/tracedialog.cpp | |
| parent | Filters. Some filters fixes, renaming and simplifications. (diff) | |
| download | inkscape-1cb21cd6cfca11a693704c0e8047cce9ee6bd26b.tar.gz inkscape-1cb21cd6cfca11a693704c0e8047cce9ee6bd26b.zip | |
Fix for 1058432 : Trace Bitmap preview should be resizeable
(bzr r11714)
Diffstat (limited to 'src/ui/dialog/tracedialog.cpp')
| -rw-r--r-- | src/ui/dialog/tracedialog.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/ui/dialog/tracedialog.cpp b/src/ui/dialog/tracedialog.cpp index a6495c205..a752ade21 100644 --- a/src/ui/dialog/tracedialog.cpp +++ b/src/ui/dialog/tracedialog.cpp @@ -294,8 +294,9 @@ void TraceDialogImpl::potraceProcess(bool do_i_trace) { int width = preview->get_width(); int height = preview->get_height(); - double scaleFX = 200.0 / (double)width; - double scaleFY = 200.0 / (double)height; + const Gtk::Allocation& vboxAlloc = previewImage.get_allocation(); + double scaleFX = vboxAlloc.get_width() / (double)width; + double scaleFY = vboxAlloc.get_height() / (double)height; double scaleFactor = scaleFX > scaleFY ? scaleFY : scaleFX; int newWidth = (int) (((double)width) * scaleFactor); int newHeight = (int) (((double)height) * scaleFactor); @@ -645,7 +646,7 @@ TraceDialogImpl::TraceDialogImpl() : //#### end left panel - mainHBox.pack_start(leftVBox); + mainHBox.pack_start(leftVBox, false, false, 0); //#### begin right panel @@ -677,7 +678,7 @@ TraceDialogImpl::TraceDialogImpl() : //#### end right panel - mainHBox.pack_start(rightVBox); + mainHBox.pack_start(rightVBox, true, true, 0); //#### Global stuff |
