From 113c4ceb149c9cc753f757b3dae1edc12bb92ca3 Mon Sep 17 00:00:00 2001 From: acanas Date: Tue, 30 May 2023 12:52:50 +0200 Subject: [PATCH] =?UTF-8?q?Version=2022.118.7:=20May=2030,=202023=20=20Fix?= =?UTF-8?q?ed=20bug=20in=20photo=20processing.=20Reported=20by=20Emilio=20?= =?UTF-8?q?Alem=C3=A1n=20Carmona.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- swad_changelog.h | 3 ++- swad_photo.c | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/swad_changelog.h b/swad_changelog.h index 0e8bf1f9..2bf0af49 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -629,10 +629,11 @@ TODO: Emilce Barrera Mesa: Podr TODO: Emilce Barrera Mesa: Mis estudiantes presentan muchas dificultades a la hora de poner la foto porque la plataforma es muy exigente respecto al fondo de la imagen. */ -#define Log_PLATFORM_VERSION "SWAD 22.118.6 (2023-05-24)" +#define Log_PLATFORM_VERSION "SWAD 22.118.7 (2023-05-30)" #define CSS_FILE "swad22.118.5.css" #define JS_FILE "swad22.49.js" /* + Version 22.118.7: May 30, 2023 Fixed bug in photo processing. Reported by Emilio Alemán Carmona. (337364 lines) Version 22.118.6: May 24, 2023 Fixed bug in rubrics. (337363 lines) Version 22.118.5: May 23, 2023 Changes in comments in surveys. (337360 lines) Version 22.118.4: May 23, 2023 Fix CSS related to frequent actions. (337351 lines) diff --git a/swad_photo.c b/swad_photo.c index 0dfb9d5a..fa44f54c 100644 --- a/swad_photo.c +++ b/swad_photo.c @@ -380,7 +380,7 @@ void Pho_SendPhotoUsr (void) void Pho_RecMyPhotoDetFaces (void) { /***** Receive my photo and detect faces on it *****/ - if (!Pho_ReceivePhotoAndDetectFaces (true,&Gbl.Usrs.Me.UsrDat)) + if (!Pho_ReceivePhotoAndDetectFaces (Usr_ME,&Gbl.Usrs.Me.UsrDat)) Pho_ReqPhoto (&Gbl.Usrs.Me.UsrDat); // Request my photograph again /***** Show my record and other data *****/ @@ -402,7 +402,7 @@ void Pho_RecOtherUsrPhotoDetFaces (void) Usr_DONT_GET_ROLE_IN_CURRENT_CRS)) { /***** Receive photo *****/ - if (!Pho_ReceivePhotoAndDetectFaces (false,&Gbl.Usrs.Other.UsrDat)) + if (!Pho_ReceivePhotoAndDetectFaces (Usr_OTHER,&Gbl.Usrs.Other.UsrDat)) Pho_ReqPhoto (&Gbl.Usrs.Other.UsrDat); // Request user's photograph again /***** Show another user's record card *****/ @@ -732,7 +732,7 @@ static bool Pho_ReceivePhotoAndDetectFaces (Usr_MeOrOther_t MeOrOther, } NumFaces.Total = NumFaces.Green + NumFaces.Red; - /***** Begin alert to the user about the number of faces detected in the image*****/ + /***** Begin alert to the user about the number of faces detected in the image *****/ if (NumFaces.Total == 0) Ale_ShowAlertAndButton1 (Ale_WARNING,Txt_Could_not_detect_any_face_in_front_position_); else if (NumFaces.Total == 1)