[Libreoffice-commits] core.git: scripting/examples

Andrea Gelmini (via logerrit) logerrit at kemper.freedesktop.org
Fri Jan 1 21:32:23 UTC 2021


 scripting/examples/python/NamedRanges.py  |    6 +++---
 scripting/examples/python/SetCellColor.py |    2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 9c5f2dc85d0af714058ffc84d86ebc7d5c4dd6a7
Author:     Andrea Gelmini <andrea.gelmini at gelma.net>
AuthorDate: Fri Jan 1 16:23:29 2021 +0100
Commit:     Julien Nabet <serval2412 at yahoo.fr>
CommitDate: Fri Jan 1 22:31:36 2021 +0100

    Fix typos
    
    Change-Id: I085ff68b4550468eb163d88978c81d8b5335e6ab
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108561
    Tested-by: Jenkins
    Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>

diff --git a/scripting/examples/python/NamedRanges.py b/scripting/examples/python/NamedRanges.py
index f4d4d32a1e05..5a28e2b5da57 100644
--- a/scripting/examples/python/NamedRanges.py
+++ b/scripting/examples/python/NamedRanges.py
@@ -54,7 +54,7 @@ def NamedRanges():
     smgr = ctx.ServiceManager
     desktop = smgr.createInstanceWithContext("com.sun.star.frame.Desktop", ctx)
 
-    # Create a blank spreadsheet document, instead of damanging the existing document.
+    # Create a blank spreadsheet document, instead of damaging the existing document.
     doc = desktop.loadComponentFromURL("private:factory/scalc", "_blank", 0, ())
 
     # Create a new sheet to store our output information
@@ -114,11 +114,11 @@ def NamedRanges():
     infoSheet.getCellRangeByName("A8").String = "Sum of test_range1:"
     infoSheet.getCellRangeByName("B8").Formula = "=SUM(test_range1)"
 
-    # Calcualte sum of test_range2
+    # Calculate sum of test_range2
     infoSheet.getCellRangeByName("A9").String = "Sum of test_range2:"
     infoSheet.getCellRangeByName("B9").Formula = "=SUM(test_range2)"
 
-    # Calcualte the difference between the two ranges
+    # Calculate the difference between the two ranges
     infoSheet.getCellRangeByName("A10").String = "sum(test_range2) - sum(test_range1):"
     infoSheet.getCellRangeByName("B10").Formula = "=B9-B8"
 
diff --git a/scripting/examples/python/SetCellColor.py b/scripting/examples/python/SetCellColor.py
index 22d86edbbeff..7319d621dd1a 100644
--- a/scripting/examples/python/SetCellColor.py
+++ b/scripting/examples/python/SetCellColor.py
@@ -38,7 +38,7 @@ def SetCellColor():
 
     # Call the above helper function to set color (in hex number).
     # To get the hex number:
-    #    1. go to Calc, click toolbar dropdown "Background Color" > Custome Color;
+    #    1. go to Calc, click toolbar dropdown "Background Color" > Custom Color;
     #    2. Pick a color, copy the hex number and prefix it with "0x".
     _SetCellColor(sheet, "C3:C21",    0x4021c9)
     _SetCellColor(sheet, "D18:E21",   0x4021c9)


More information about the Libreoffice-commits mailing list