[chronojump] Fixed snapshot do on since last commits
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Fixed snapshot do on since last commits
- Date: Sat, 28 Jul 2018 23:13:39 +0000 (UTC)
commit 0c68ab063b8ccc6d63a93e627c256c69122e7e75
Author: Xavier de Blas <xaviblas gmail com>
Date: Sun Jul 29 01:07:45 2018 +0200
Fixed snapshot do on since last commits
src/gui/person.cs | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/gui/person.cs b/src/gui/person.cs
index 06f310fd..84113912 100644
--- a/src/gui/person.cs
+++ b/src/gui/person.cs
@@ -1140,7 +1140,8 @@ public class PersonAddModifyWindow
if(webcam.Snapshot())
{
- File.Copy(Util.GetMplayerPhotoTempFileNamePost(videoDevice),
Util.GetPhotoPngFileName(false, currentPerson.UniqueID), true); //overwrite
+ File.Copy(Util.GetMplayerPhotoTempFileNamePost(Util.ChangeChars(videoDevice, "/",
"_")),
+ Util.GetPhotoPngFileName(false, currentPerson.UniqueID),
true); //overwrite
string filenameMini = Util.GetPhotoPngFileName(true, currentPerson.UniqueID);
bool miniSuccess = UtilMultimedia.LoadAndResizeImage(
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]