Commit graph

4348 commits

Author SHA1 Message Date
Roman Telezhynskyi 736d21d71c Fix bug with mouse cursor when use line tool.
--HG--
branch : develop
2017-11-13 11:03:12 +02:00
Roman Telezhynskyi 132b7c9fc6 CSR - special modeling case.
--HG--
branch : develop
2017-11-13 10:53:27 +02:00
Roman Telezhynskyi 238e6fb24b Fix bug. Pressing Escape key disables undocommands.
--HG--
branch : develop
2017-11-11 11:28:54 +02:00
Roman Telezhynskyi c180a26e09 Improve tool Point on middle visualization.
Show point on middle position when creating a point.

--HG--
branch : develop
2017-11-11 11:24:30 +02:00
Roman Telezhynskyi ec3750e087 Resolved issue #773. Tool Point intersection curve and axis cannot find
desired intersection poin.
(grafted from 86bc49a9552fc4555956815a4d32abfa091ccfc1)

--HG--
branch : develop
2017-11-11 11:01:45 +02:00
Roman Telezhynskyi b453d2b2d6 Fix bug in dialog Seam allowance tool.
The dialog should prevent user to save a detail with broken formula.

--HG--
branch : develop
2017-11-01 11:40:19 +02:00
Roman Telezhynskyi d1e3531247 Write log output in UTF-8.
--HG--
branch : develop
2017-11-01 10:20:07 +02:00
Roman Telezhynskyi 0ef92f9cba Fixed Valentina crash.
Valentina crashes if creating tool was canceled.

--HG--
branch : develop
2017-10-31 20:01:19 +02:00
Roman Telezhynskyi e9abab4eb2 Fix bug in Valentina.
Each QGaphicsItem should make accepted mouse press event if it accept an event.

--HG--
branch : develop
2017-10-31 10:31:50 +02:00
Roman Telezhynskyi 790e276102 SonarQube warnings.
--HG--
branch : develop
2017-10-30 12:16:58 +02:00
Roman Telezhynskyi 7a11b3497a Fix bug with setting cursor QGraphicsPathItem without hover events.
--HG--
branch : develop
2017-10-30 11:08:25 +02:00
Roman Telezhynskyi 16a0af6ca5 Get a tool focus after creation.
Need for keyborad input.

--HG--
branch : develop
2017-10-30 09:57:19 +02:00
Roman Telezhynskyi cbf3e4d5df When create group selecting a control point should also select a curve.
--HG--
branch : develop
2017-10-30 08:34:18 +02:00
Roman Telezhynskyi 55754d227b Fix bug with spline path.
--HG--
branch : develop
2017-10-30 08:20:03 +02:00
Roman Telezhynskyi 61efe97e6c Fix black square bug.
--HG--
branch : develop
2017-10-29 20:12:35 +02:00
Roman Telezhynskyi 1ce645fa16 Fix bug in undocommands.
--HG--
branch : develop
2017-10-29 19:49:51 +02:00
Roman Telezhynskyi 8309fa8c7a Save show curve details state between sessions.
--HG--
branch : develop
2017-10-29 15:13:13 +02:00
Roman Telezhynskyi 1cd126856c Fixes for spline control point.
--HG--
branch : develop
2017-10-29 13:48:28 +02:00
Roman Telezhynskyi f16d26b659 Improve EnsureVisibleWithDelay feature.
Margins should to be scaled according to scene scale factor.

--HG--
branch : develop
2017-10-29 13:46:58 +02:00
Roman Telezhynskyi 09f3ba234c Fix bug with item highligh selected.
--HG--
branch : develop
2017-10-29 11:06:17 +02:00
Roman Telezhynskyi def801a626 Call item update if curve detailed mode changed.
Need to show/hide a curve direction.

--HG--
branch : develop
2017-10-29 10:53:47 +02:00
Roman Telezhynskyi 969dd163bf Fix bug with spline's control point.
Fix infinite redrawing.

--HG--
branch : develop
2017-10-28 19:21:47 +03:00
Roman Telezhynskyi d3cf15f5b8 Fix some bugs.
--HG--
branch : develop
2017-10-28 17:31:18 +03:00
Roman Telezhynskyi 46d6fcd29d Fix creating pieces.
--HG--
branch : develop
2017-10-28 14:11:52 +03:00
Roman Telezhynskyi 104a491a67 Fixing font problem on Windows.
Calc start label scale based on start font size and minimal visible font size.

--HG--
branch : develop
2017-10-28 13:02:51 +03:00
Roman Telezhynskyi 72dde072af New feature. Allow to exclude piece node point from it's context menu.
--HG--
branch : develop
2017-10-27 14:02:17 +03:00
Roman Telezhynskyi 91b4c7c8fa Fix bug with returning a piece to original position.
--HG--
branch : develop
2017-10-27 12:28:08 +03:00
Roman Telezhynskyi dd5b276e5d Fix bug with exclude objects.
--HG--
branch : develop
2017-10-27 12:11:29 +03:00
Roman Telezhynskyi 29b23bbce3 Toggle piece node point label. ref #755.
--HG--
branch : develop
2017-10-27 11:53:35 +03:00
Roman Telezhynskyi 3df6c09934 Optimize adjusting scene rect after moving label.
--HG--
branch : develop
2017-10-27 10:36:55 +03:00
Roman Telezhynskyi d61f732bde Improve warning message to provide more appropriate infromation about an error.
--HG--
branch : develop
2017-10-27 09:24:18 +03:00
Roman Telezhynskyi 4af32961b0 Optimize adjusting new scene rect.
If we know an object that cause adjustment no need to recalc bounding rect for
all scene items.

--HG--
branch : develop
2017-10-27 09:13:51 +03:00
Roman Telezhynskyi 6dfe04e2bc Fixing issue with slow zooming.
Check if need to update scene rect before actual update.

--HG--
branch : develop
2017-10-26 22:59:28 +03:00
Roman Telezhynskyi 7777646a16 Fix font problem on Windows.
--HG--
branch : develop
2017-10-26 19:57:52 +03:00
Roman Telezhynskyi 5a07871a8d Fix Tool union Reatin pieces option.
--HG--
branch : feature
2017-10-26 17:22:12 +03:00
Roman Telezhynskyi 51e670bd84 Duplicate from GUI.
--HG--
branch : feature
2017-10-26 16:57:52 +03:00
Roman Telezhynskyi e8ca7f575d Fix bug. Modeling objects should be separated from calculation objects and stay
in not copied container.

--HG--
branch : feature
2017-10-26 12:54:08 +03:00
Roman Telezhynskyi 9b54b0c069 Dialog Duplicate Detail.
--HG--
branch : feature
2017-10-25 17:49:04 +03:00
Roman Telezhynskyi 3362e8a4dc Fix font problem on Windows.
--HG--
branch : develop
2017-10-25 22:34:28 +03:00
Roman Telezhynskyi feaa43a712 SonarCloud warning.
--HG--
branch : develop
2017-10-25 13:54:15 +03:00
Roman Telezhynskyi 7c0d17a7e3 Cppcheck warning.
--HG--
branch : develop
2017-10-25 11:56:24 +03:00
Roman Telezhynskyi 19fb13affe Resolved issue #771. Improve tool Point at intersection of arc and line.
--HG--
branch : develop
2017-10-25 11:27:43 +03:00
Roman Telezhynskyi 7fce20c98e Removed redundant calls UpdateGObject(). Undocommand for piece label.
--HG--
branch : feature
2017-10-24 20:25:51 +03:00
Roman Telezhynskyi 89a2323944 Fix problem with updating objects inside vcontainer.
--HG--
branch : feature
2017-10-24 19:50:16 +03:00
Roman Telezhynskyi f78c122cb0 Show place label rect.
--HG--
branch : feature
2017-10-24 16:42:09 +03:00
Roman Telezhynskyi 7a2297ed6b Correct applying correction angle.
--HG--
branch : feature
2017-10-24 14:23:11 +03:00
Roman Telezhynskyi 14e19ced4b Refactoring. Move dialogs related to pieces.
--HG--
branch : feature
2017-10-24 14:14:59 +03:00
Roman Telezhynskyi 9c6160fa50 Fix bug with parent disappearing.
--HG--
branch : feature
2017-10-24 12:02:47 +03:00
Roman Telezhynskyi f27c7e4e35 Fix recursive repaint after label scale.
--HG--
branch : feature
2017-10-23 21:10:48 +03:00
Roman Telezhynskyi 05cad85ab3 Fix bug with tool seam allowance cursor.
--HG--
branch : feature
2017-10-23 14:31:01 +03:00
Roman Telezhynskyi 233efde704 Always draw circle for Button type.
--HG--
branch : feature
2017-10-23 12:33:54 +03:00
Roman Telezhynskyi 6f5969a357 Use icon from default theme.
--HG--
branch : feature
2017-10-23 11:33:34 +03:00
Roman Telezhynskyi 660efa3844 Fix bugs.
* * *
Fix tool union bugs.
* * *
Fix preparing pieces for layout.
* * *
Fix bug with formulas.

--HG--
branch : feature
2017-10-23 10:45:58 +03:00
Roman Telezhynskyi 2a3d52ba88 Improve scene point.
Scale line to label and make the line more transparent.

--HG--
branch : feature
2017-10-21 16:26:22 +03:00
Roman Telezhynskyi f4c5ad7213 Fix undo bug. Undocommand doesn't increment/decrement reference counters.
--HG--
branch : feature
2017-10-17 19:35:39 +03:00
Roman Telezhynskyi ca79c7ff93 Added place label.
--HG--
branch : feature
2017-10-15 12:25:20 +03:00
Roman Telezhynskyi 7038b60e43 Fix black square bug.
--HG--
branch : develop
2017-10-22 11:31:32 +03:00
Roman Telezhynskyi f0035e1f65 Refactor method VGObject::IsPointOnLineSegment.
--HG--
branch : develop
2017-10-19 19:50:00 +03:00
Roman Telezhynskyi dd0025456b Fix crash in Free curve mode.
--HG--
branch : develop
2017-10-19 16:26:51 +03:00
Roman Telezhynskyi 52a8fb5bae Fix scale problem with selecting points.
We scaled point circle size, but forgot to adjust test size according to scale
too.

--HG--
branch : develop
2017-10-19 15:56:57 +03:00
Roman Telezhynskyi 3e80b6439a Fix bug with seam allowance. ref #767.
(grafted from 764b3537c0c8cac7804494f00436bdd152d286d7)

--HG--
branch : develop
2017-10-19 14:11:57 +03:00
Roman Telezhynskyi 71b5a17aa1 Refactor methods names for better readability.
--HG--
branch : develop
2017-10-19 11:24:21 +03:00
Roman Telezhynskyi 8eecfe78a3 New feature multi deletion pieces.
--HG--
branch : develop
2017-10-19 11:20:19 +03:00
Roman Telezhynskyi 6bbd54f6ef Improve Add piece undocommand.
Performance improvement.

--HG--
branch : develop
2017-10-18 18:02:02 +03:00
Roman Telezhynskyi 614fd3a0f9 Improve Delete piece undocommand.
Performance improvement.

--HG--
branch : develop
2017-10-18 16:40:20 +03:00
Roman Telezhynskyi 1fbb65d21d Fix SavePiecePathOptions undocommand.
Bug with increment/decrement reference counter.

--HG--
branch : develop
2017-10-18 11:58:01 +03:00
Roman Telezhynskyi 6b6c7aff52 Improve Save piece options undocommand.
Performance improvement.

--HG--
branch : develop
2017-10-18 11:56:29 +03:00
Roman Telezhynskyi ef41c700f8 Improve Move piece undocommand.
Performance improvement.

--HG--
branch : develop
2017-10-18 11:24:15 +03:00
Roman Telezhynskyi b693244847 Fix issue with cursor position in tabs increments and preview calculations.
--HG--
branch : develop
2017-10-17 14:46:22 +03:00
Roman Telezhynskyi 6b47894f16 Cppcheck warnings.
--HG--
branch : develop
2017-10-13 22:03:44 +03:00
Roman Telezhynskyi 2d21ac2266 Clang warning.
--HG--
branch : develop
2017-10-13 18:48:52 +03:00
Roman Telezhynskyi 782897dd08 New forum.
--HG--
branch : develop
2017-10-13 17:50:25 +03:00
Roman Telezhynskyi cc66a2ccbb Fix compatibility issue with Qt 5.2.
--HG--
branch : develop
2017-10-13 17:48:54 +03:00
Roman Telezhynskyi d15e507aeb Fix issue. User should be able to control tiled pdf export through command line.
--HG--
branch : develop
2017-10-13 17:48:20 +03:00
Roman Telezhynskyi 0da31099f3 Tiled pdf should work only with standard formats.
--HG--
branch : develop
2017-10-12 10:40:11 +03:00
Roman Telezhynskyi 0f59db15db Clang warning.
--HG--
branch : develop
2017-10-12 10:35:22 +03:00
Roman Telezhynskyi 8981e77927 Clang warning.
--HG--
branch : develop
2017-10-11 14:26:05 +03:00
Roman Telezhynskyi a2ebd5bb68 Fix broken tests. ref #768.
--HG--
branch : develop
2017-10-11 14:22:10 +03:00
Roman Telezhynskyi baa2f4fd92 Resolved issue #768. New feature. Custom curve approximation scale.
--HG--
branch : develop
2017-10-11 13:51:06 +03:00
Roman Telezhynskyi 38815727bb Fix bugs. ref #657.
--HG--
branch : develop
2017-10-11 11:34:22 +03:00
Roman Telezhynskyi 8cbf143592 Cppcheck.
--HG--
branch : develop
2017-10-10 14:40:07 +03:00
Roman Telezhynskyi b85c94273f Lupdate.
--HG--
branch : develop
2017-10-10 14:02:20 +03:00
Roman Telezhynskyi 9cbd725957 Fix broken tests.
(grafted from 115ada20dc71e5c75046da96b26245fd431bf8d3)

--HG--
branch : develop
2017-10-10 13:37:54 +03:00
Roman Telezhynskyi 136b9f66ed Fixed issue. Curves look too wavy.
(grafted from 87dfd6a669e23585ed67982d043e6abd26a1f00b)

--HG--
branch : develop
2017-10-10 12:28:17 +03:00
Roman Telezhynskyi 67b01c0337 Resolved issue #657. Improve feature: Allow more paper formats for printing
tiled PDF.

--HG--
branch : develop
2017-10-10 12:22:59 +03:00
Roman Telezhynskyi 0fb0763191 Fixed issue #767. Valentina produces wrong main path.
(grafted from c07c9ff6a27a673f55e5c3d98242534ee2c6ca95)

--HG--
branch : develop
2017-10-07 15:19:36 +03:00
Roman Telezhynskyi 61172d46c4 Fix typo in headers.
--HG--
branch : develop
2017-10-05 12:20:01 +03:00
Roman Telezhynskyi daa539378f Resolved issue #765. New feature. Free curve mode.
--HG--
branch : develop
2017-10-03 13:01:56 +03:00
Roman Telezhynskyi f636a3899f Export description as part of final measurements.
ref #761.

--HG--
branch : develop
2017-10-03 10:40:08 +03:00
Roman Telezhynskyi f122ce479c Speed optimization. Deploy Windows version with file qtlogging.ini that disables
logging.

--HG--
branch : develop
2017-10-03 10:18:29 +03:00
Roman Telezhynskyi 8eb7c413e9 Two new shortcut sequences: Ctrl+PgDown and Ctrl+PgUp to switch to next and
previous pattern piece.

ref #762.

--HG--
branch : develop
2017-10-02 19:51:15 +03:00
Roman Telezhynskyi 08df3b4486 Scrolling delay.
When object is close to edge of view Valentina begins scrolling scene to ensure
that the object is visible. In many cases this happens to fast for user. As
solution after correction Valentina will wait 80 milliseconds before procedding
next move. This will give users enough time to react. Such delay is called only
if view was scrolled.

--HG--
branch : develop
2017-10-02 16:25:18 +03:00
Roman Telezhynskyi da2cc857df Fix scaling point label.
--HG--
branch : develop
2017-09-30 21:13:22 +03:00
Roman Telezhynskyi 95a21e07cc Fix test crash.
--HG--
branch : develop
2017-09-30 11:31:41 +03:00
Roman Telezhynskyi 4d113db163 Cannot suppress warning -Wstrict-overflow. Completely disable it.
--HG--
branch : develop
2017-09-29 19:05:34 +03:00
Roman Telezhynskyi 0adfbb8fb1 New math parser function "r2cm". Round to up to 1 decimal.
--HG--
branch : develop
2017-09-29 17:47:11 +03:00
Roman Telezhynskyi be614ad9f8 Right way to suppress GCC warning Wstrict-overflow for method QVector::move().
--HG--
branch : develop
2017-09-29 17:13:30 +03:00
Roman Telezhynskyi 8de6fc4473 Fix XSD schema to accept number of user material placeholders up to 20.
--HG--
branch : develop
2017-09-29 11:40:57 +03:00
Roman Telezhynskyi a5e4261e55 GCC warning.
--HG--
branch : develop
2017-09-29 10:43:47 +03:00
Roman Telezhynskyi 58ca1b3110 Fix dialog Final measurements. Set title and icon.
--HG--
branch : develop
2017-09-29 10:12:19 +03:00
Roman Telezhynskyi 6ed9dce7bf Clang warning.
--HG--
branch : develop
2017-09-28 21:20:32 +03:00
Roman Telezhynskyi d7b3ddc2d5 Resolved issue #758. Intersection Passmark - select which side is shown.
--HG--
branch : develop
2017-09-28 21:18:13 +03:00
Roman Telezhynskyi d0150bccbd Removed redundant include.
--HG--
branch : develop
2017-09-28 20:27:33 +03:00
Roman Telezhynskyi 5551b853b9 Extend number of user material placeholders up to 20.
--HG--
branch : develop
2017-09-28 17:45:57 +03:00
Roman Telezhynskyi 657c445e46 Extract formulas from final measurements.
--HG--
branch : feature
2017-09-28 16:39:27 +03:00
Roman Telezhynskyi 5d2e584d2f Improving for embedded man page.
Use bullet list where possible.

--HG--
branch : feature
2017-09-28 16:22:35 +03:00
Roman Telezhynskyi ffe4affcbf Retrieve canonical file path if possible.
--HG--
branch : feature
2017-09-28 16:05:55 +03:00
Roman Telezhynskyi b673ec0fc7 Command line options to export final measurements.
--HG--
branch : feature
2017-09-28 16:05:04 +03:00
Roman Telezhynskyi d01edb53c3 Abort export if cannot retrive a value.
--HG--
branch : feature
2017-09-27 15:23:40 +03:00
Roman Telezhynskyi ac96ce6b84 Export Final measurements to CSV.
--HG--
branch : feature
2017-09-27 14:47:05 +03:00
Roman Telezhynskyi 257fb2f913 Refactor export to CSV.
Preparation for export final measurements.

--HG--
branch : feature
2017-09-27 13:25:18 +03:00
Roman Telezhynskyi 4caab9a479 Fix export increments and preview calculations.
Separate both types. First write increments then preview calculations.

--HG--
branch : feature
2017-09-27 11:53:17 +03:00
Roman Telezhynskyi 661e71bad0 Refactoring use static methods VTranslateVars::TryFormula*User().
--HG--
branch : feature
2017-09-26 17:46:28 +03:00
Roman Telezhynskyi 0eb6b8b30f Dialog Final measurements.
--HG--
branch : feature
2017-09-26 17:24:02 +03:00
Roman Telezhynskyi 8c84cff91d Read/write list of final measurements.
--HG--
branch : feature
2017-09-26 12:54:52 +03:00
Roman Telezhynskyi e1075dfdf5 Fix zoom fit best current after adding new pattern piece.
--HG--
branch : develop
2017-09-25 18:28:58 +03:00
Roman Telezhynskyi 6bd1a460e6 Refactor method VPattern::setCurrentData().
It should use method VAbstractPattern::getLocalHistory().

--HG--
branch : develop
2017-09-25 18:15:28 +03:00
Roman Telezhynskyi 3a358f7633 Improve dialog Increments. It should show all internal variables instead it
showed only those who were in currently selected pattern piece.

--HG--
branch : develop
2017-09-25 16:36:04 +03:00
Roman Telezhynskyi ab961834e8 Add missed keys to list of all command line keys.
--HG--
branch : develop
2017-09-24 10:37:58 +03:00
Roman Telezhynskyi bdc8840184 Resolved issue #756. New feature. Select pieces from command line.
--HG--
branch : develop
2017-09-22 19:16:16 +03:00
Roman Telezhynskyi a5c9ba6c4d Fix export bug. In command line mode Valentina ignored option "in Layout" for
all pieces.

--HG--
branch : develop
2017-09-22 15:37:03 +03:00
Roman Telezhynskyi 29972118ff Lupdate.
--HG--
branch : develop
2017-09-24 10:33:49 +03:00
Roman Telezhynskyi 0fd36056d4 New test. Check ellipsis at the end of line.
--HG--
branch : develop
2017-09-24 10:33:35 +03:00
Roman Telezhynskyi d44638eab2 SonarQube warnings.
--HG--
branch : develop
2017-09-21 10:05:58 +03:00
Roman Telezhynskyi 28cd003bcc Improve converting customer name.
--HG--
branch : develop
2017-09-21 09:55:59 +03:00
Roman Telezhynskyi dismine@gmail.com 679830ba20 Clang warnings.
--HG--
branch : develop
2017-09-21 09:46:48 +03:00
Roman Telezhynskyi dismine@gmail.com 542ab7e648 Clang warnings.
--HG--
branch : develop
2017-09-20 19:41:12 +03:00
Roman Telezhynskyi 40662bb948 Fixed bug. After full parse undocommand Move labe losts connection to tool.
--HG--
branch : develop
2017-09-20 15:39:42 +03:00
Roman Telezhynskyi f2b07a482c GCC warning.
--HG--
branch : develop
2017-09-20 14:27:43 +03:00
Roman Telezhynskyi 17394e8259 Compiler warnings.
--HG--
branch : develop
2017-09-20 14:05:41 +03:00
Roman Telezhynskyi c004f0fbad Cppcheck warning.
--HG--
branch : develop
2017-09-20 13:28:06 +03:00
Roman Telezhynskyi f7c75111ce Added support for operation tools.
--HG--
branch : feature
2017-09-20 12:10:57 +03:00
Roman Telezhynskyi af1e01c243 Hide Show label option for not point objects.
--HG--
branch : feature
2017-09-20 10:28:49 +03:00
Roman Telezhynskyi 7864ae9572 Added support for tool True Darts.
--HG--
branch : feature
2017-09-20 10:19:02 +03:00
Roman Telezhynskyi 795438c202 Merge with develop.
--HG--
branch : feature
2017-09-20 08:53:44 +03:00
Roman Telezhynskyi bfe327ee13 If pattern linked to individual measurements it should get customer name from
it.

--HG--
branch : develop
2017-09-19 16:07:48 +03:00
Roman Telezhynskyi e7db934fb5 Refactor tool clases to pass data in structure.
--HG--
branch : feature
2017-09-18 11:37:23 +03:00
Roman Telezhynskyi 783f2f1296 Merge with develop.
--HG--
branch : feature
2017-09-18 09:13:47 +03:00
Roman Telezhynskyi 0bfeb859f8 Fixed issue #754. Converting to new label template system cause error in cut
number.

--HG--
branch : develop
2017-09-18 09:11:39 +03:00
Roman Telezhynskyi b01adfa388 Saving to file works for simple point.
--HG--
branch : feature
2017-09-17 19:52:18 +03:00
Roman Telezhynskyi 2e8f113e3e Tooltip for complex tools.
--HG--
branch : feature
2017-09-17 13:58:43 +03:00
Roman Telezhynskyi 6f160ebd9c Improve tooltip. It should show object label.
--HG--
branch : feature
2017-09-17 10:24:34 +03:00
Roman Telezhynskyi dbe1981eb5 Refactor to avoid hidding class member.
--HG--
branch : feature
2017-09-17 09:45:18 +03:00
Roman Telezhynskyi fa74e32769 First working result.
Doesn't change file.

--HG--
branch : feature
2017-09-17 09:19:13 +03:00
Roman Telezhynskyi f2d1b4b916 Forgot to refactor this name.
--HG--
branch : feature
2017-09-17 09:17:37 +03:00
Roman Telezhynskyi f6923a92f4 Show option Show label.
--HG--
branch : feature
2017-09-16 17:25:14 +03:00
Roman Telezhynskyi 2864be7342 Refactoring to recognize child that called a contex menu.
--HG--
branch : feature
2017-09-15 17:32:23 +03:00
Roman Telezhynskyi cc01fdf2d2 Fix Valentina crash.
The crash appeared after wrong refactoring.

--HG--
branch : develop
2017-09-15 09:25:19 +03:00
Roman Telezhynskyi 39aa43fe8f SonarQube warnings.
--HG--
branch : develop
2017-09-13 11:52:41 +03:00
Roman Telezhynskyi 851044d37e Cppcheck warning.
(grafted from 472ee616f82f6ff5e6b2d0ed4adcc2aa76c12ea1)

--HG--
branch : develop
2017-09-13 09:27:52 +03:00