Version19.180.2

This commit is contained in:
acanas 2020-04-13 12:04:49 +02:00
parent 63157df70b
commit e12627364b
2 changed files with 24 additions and 10 deletions

View File

@ -497,7 +497,7 @@ enscript -2 --landscape --color --file-align=2 --highlight --line-numbers -o - *
En OpenSWAD: En OpenSWAD:
ps2pdf source.ps destination.pdf ps2pdf source.ps destination.pdf
*/ */
#define Log_PLATFORM_VERSION "SWAD 19.180.1 (2020-04-12)" #define Log_PLATFORM_VERSION "SWAD 19.180.2 (2020-04-13)"
#define CSS_FILE "swad19.146.css" #define CSS_FILE "swad19.146.css"
#define JS_FILE "swad19.172.1.js" #define JS_FILE "swad19.172.1.js"
/* /*
@ -548,6 +548,7 @@ Funci
// TODO: Oresti Baños: cambiar ojos por candados en descriptores para prohibir/permitir y dejar los ojos para poder elegir descriptores // TODO: Oresti Baños: cambiar ojos por candados en descriptores para prohibir/permitir y dejar los ojos para poder elegir descriptores
// TODO: Integrar pull requests con traducciones del alemán del usuario eruedin en GitHub // TODO: Integrar pull requests con traducciones del alemán del usuario eruedin en GitHub
Version 19.180.2: Apr 13, 2020 Fixed bugs in syllabus. (285613 lines)
Version 19.180.1: Apr 12, 2020 Changes in stats of clicks. (285599 lines) Version 19.180.1: Apr 12, 2020 Changes in stats of clicks. (285599 lines)
Version 19.180: Apr 12, 2020 Code refactoring in photo of degree. (285603 lines) Version 19.180: Apr 12, 2020 Code refactoring in photo of degree. (285603 lines)
Version 19.179: Apr 12, 2020 Code refactoring in indicators. (285582 lines) Version 19.179: Apr 12, 2020 Code refactoring in indicators. (285582 lines)

View File

@ -213,7 +213,7 @@ bool Syl_CheckSyllabus (struct Syl_Syllabus *Syllabus,long CrsCod)
} }
/*****************************************************************************/ /*****************************************************************************/
/****************************** Edit a syllabus ******************************/ /************** Load syllabus from file to memoruy and edit it ***************/
/*****************************************************************************/ /*****************************************************************************/
// Return true if info available // Return true if info available
@ -230,9 +230,22 @@ bool Syl_CheckAndEditSyllabus (struct Syl_Syllabus *Syllabus)
/***** Load syllabus from XML file to memory *****/ /***** Load syllabus from XML file to memory *****/
Syl_LoadListItemsSyllabusIntoMemory (Syllabus,Gbl.Hierarchy.Crs.CrsCod); Syl_LoadListItemsSyllabusIntoMemory (Syllabus,Gbl.Hierarchy.Crs.CrsCod);
if (Gbl.Action.Act == ActEditorSylLec || switch (Gbl.Action.Act)
Gbl.Action.Act == ActEditorSylPra) {
Syllabus->EditionIsActive = true; case ActEditorSylLec: case ActEditorSylPra:
case ActDelItmSylLec: case ActDelItmSylPra:
case ActUp_IteSylLec: case ActUp_IteSylPra:
case ActDwnIteSylLec: case ActDwnIteSylPra:
case ActRgtIteSylLec: case ActRgtIteSylPra:
case ActLftIteSylLec: case ActLftIteSylPra:
case ActInsIteSylLec: case ActInsIteSylPra:
case ActModIteSylLec: case ActModIteSylPra:
Syllabus->EditionIsActive = true;
break;
default:
Syllabus->EditionIsActive = false;
break;
}
if (Syllabus->EditionIsActive || Syl_LstItemsSyllabus.NumItems) if (Syllabus->EditionIsActive || Syl_LstItemsSyllabus.NumItems)
{ {
@ -962,7 +975,7 @@ void Syl_RemoveItemSyllabus (void)
/***** Show the updated syllabus to continue editing it *****/ /***** Show the updated syllabus to continue editing it *****/
Syl_FreeListItemsSyllabus (); Syl_FreeListItemsSyllabus ();
Syl_EditSyllabus (); (void) Syl_CheckAndEditSyllabus (&Syllabus);
} }
/*****************************************************************************/ /*****************************************************************************/
@ -1068,7 +1081,7 @@ static void Syl_ChangePlaceItemSyllabus (Syl_ChangePosItem_t UpOrDownPos)
/***** Show the updated syllabus to continue editing it *****/ /***** Show the updated syllabus to continue editing it *****/
Syl_FreeListItemsSyllabus (); Syl_FreeListItemsSyllabus ();
Syl_EditSyllabus (); (void) Syl_CheckAndEditSyllabus (&Syllabus);
} }
/*****************************************************************************/ /*****************************************************************************/
@ -1237,7 +1250,7 @@ static void Syl_ChangeLevelItemSyllabus (Syl_ChangeLevelItem_t IncreaseOrDecreas
/***** Show the updated syllabus to continue editing it *****/ /***** Show the updated syllabus to continue editing it *****/
Syl_FreeListItemsSyllabus (); Syl_FreeListItemsSyllabus ();
Syl_EditSyllabus (); (void) Syl_CheckAndEditSyllabus (&Syllabus);
} }
/*****************************************************************************/ /*****************************************************************************/
@ -1308,7 +1321,7 @@ void Syl_InsertItemSyllabus (void)
/***** Show the updated syllabus to continue editing it *****/ /***** Show the updated syllabus to continue editing it *****/
Syl_FreeListItemsSyllabus (); Syl_FreeListItemsSyllabus ();
Syl_EditSyllabus (); (void) Syl_CheckAndEditSyllabus (&Syllabus);
} }
/*****************************************************************************/ /*****************************************************************************/
@ -1360,7 +1373,7 @@ void Syl_ModifyItemSyllabus (void)
/***** Show the updated syllabus to continue editing it *****/ /***** Show the updated syllabus to continue editing it *****/
Syl_FreeListItemsSyllabus (); Syl_FreeListItemsSyllabus ();
Syl_EditSyllabus (); (void) Syl_CheckAndEditSyllabus (&Syllabus);
} }
/*****************************************************************************/ /*****************************************************************************/