Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
b3a59146
Commit
b3a59146
authored
Jul 09, 2018
by
Christoffer Ackelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed image_scale
parent
d83a335b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
xtt/lib/flow/qt/flow_draw_qt.cqt
xtt/lib/flow/qt/flow_draw_qt.cqt
+1
-1
xtt/lib/glow/qt/glow_draw_qt.cqt
xtt/lib/glow/qt/glow_draw_qt.cqt
+3
-4
No files found.
xtt/lib/flow/qt/flow_draw_qt.cqt
View file @
b3a59146
...
...
@@ -1875,7 +1875,7 @@ void FlowDrawQt::image_scale(float scale, flow_tImImage orig_im,
if (*im) {
delete ((QImage *) *im);
}
*
((QImage * ) * im) = ((QImage *) orig_im)->scaled(width, height
);
*
im = new QImage(((QImage *) orig_im)->scaled(width, height)
);
}
int FlowDrawQt::image_load(const char *imagefile, float scale, float nav_scale,
...
...
xtt/lib/glow/qt/glow_draw_qt.cqt
View file @
b3a59146
...
...
@@ -2401,9 +2401,8 @@ int GlowDrawQt::image_scale(int width, int height, glow_tImImage orig_im,
return 0;
}
QImage *im_old = (QImage * ) * im;
*((QImage * ) * im) = ((QImage * ) * im)->scaled(width, height);
delete im_old;
delete ((QImage *) *im);
*im = new QImage(((QImage *) orig_im)->scaled(width, height));
} else {
// Scale from orig_im
...
...
@@ -2424,7 +2423,7 @@ int GlowDrawQt::image_scale(int width, int height, glow_tImImage orig_im,
if (*im) {
delete ((QImage * ) * im);
}
*
((QImage * ) * im) = ((QImage *) orig_im)->scaled(width, height
);
*
im = new QImage(((QImage *) orig_im)->scaled(width, height)
);
}
}
return 1;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment