File: 50_67c64f0ca1c4_Fixes_a_type_of_format_string.diff

package info (click to toggle)
hugin 2016.2.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 32,072 kB
  • ctags: 11,979
  • sloc: cpp: 116,753; ansic: 6,335; python: 1,517; perl: 577; sh: 168; xml: 102; makefile: 64
file content (20 lines) | stat: -rw-r--r-- 1,147 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# HG changeset patch
# User tmodes
# Date 1474121697 -7200
#      Sat Sep 17 16:14:57 2016 +0200
# Node ID 67c64f0ca1c45c991efa7b11e457cc5bc2c945c0
# Parent  91b78c0c991f60744d71c9a4bd434c46cba4b444
Fixes a type of format string

diff -r 91b78c0c991f -r 67c64f0ca1c4 src/hugin1/hugin/MainFrame.cpp
--- a/src/hugin1/hugin/MainFrame.cpp	Sat Sep 17 16:14:24 2016 +0200
+++ b/src/hugin1/hugin/MainFrame.cpp	Sat Sep 17 16:14:57 2016 +0200
@@ -2162,7 +2162,7 @@
             unsigned i2 = *(comps[1].begin());
             ShowCtrlPointEditor( i1, i2);
             // display message box with 
-            wxMessageBox(wxString::Format(_("Warning %d unconnected image groups found:"), comps.size()) + Components2Str(comps) + wxT("\n")
+            wxMessageBox(wxString::Format(_("Warning %d unconnected image groups found:"), static_cast<int>(comps.size())) + Components2Str(comps) + wxT("\n")
                 + _("Please create control points between unconnected images using the Control Points tab in the panorama editor.\n\nAfter adding the points, press the \"Align\" button again"),_("Error"), wxOK , mainWin);
             return;
         };