Skip to content

Fixed some bugs#1

Open
homesick94 wants to merge 2 commits intotilast:masterfrom
homesick94:master
Open

Fixed some bugs#1
homesick94 wants to merge 2 commits intotilast:masterfrom
homesick94:master

Conversation

@homesick94
Copy link
Copy Markdown

Fixed compilation bugs and some errors, found with the help of clang static analyzer.

Copy link
Copy Markdown
Owner

@tilast tilast left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks a lot, @homesick94, looks cool
you can add some compilations instructions readme as well

Comment thread svgfigureparser.cpp
//float length = x2 - x1; - unused variable

float c = delta / length;
//float c = delta / length; - unused variable
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can just remove them if they are unused

@@ -0,0 +1,255 @@
<?xml version="1.0" encoding="UTF-8"?>
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is this file for?

Comment thread canvaswidget.cpp
selected = NULL;
transformation = NONE;
if (!shapes.size ())
return;
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this condition looks to do not have any sense b/c there will not be any loop if size is 0

@homesick94
Copy link
Copy Markdown
Author

homesick94 commented Dec 6, 2016 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants