summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Gelmini <andrea.gelmini@gelma.net>2017-03-02 12:22:01 +0100
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-03-03 06:56:20 +0000
commit8b633f40514f9d33a22cf9b2e064d8ef3ef2c7f4 (patch)
treeb43fecb42afb5ffc297d41b6069c3ac159af7d19
parent3ffc206a4b70863fc1a340c0011eb4aa82819ae1 (diff)
Fix typos
Change-Id: Iedca07be5300c68e180e0c71d2d6eb0052f5cced Reviewed-on: https://gerrit.libreoffice.org/34801 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r--sal/osl/unx/uunxapi.cxx2
-rw-r--r--sal/qa/osl/file/osl_File.cxx10
-rw-r--r--sal/textenc/tcvtjp6.tab12
-rw-r--r--sc/qa/unit/data/functions/spreadsheet/fods/index.fods4
-rw-r--r--sc/qa/unit/ucalc.cxx4
-rw-r--r--sc/source/core/data/drwlayer.cxx2
-rw-r--r--sc/source/core/data/table2.cxx2
-rw-r--r--sc/source/core/tool/ddelink.cxx4
-rw-r--r--sc/source/core/tool/rangelst.cxx2
-rw-r--r--sc/source/filter/excel/xicontent.cxx2
-rw-r--r--sc/source/filter/inc/excimp8.hxx2
-rw-r--r--sc/source/filter/inc/xehelper.hxx2
-rw-r--r--sc/source/filter/inc/xestyle.hxx4
-rw-r--r--sc/source/ui/app/inputhdl.cxx6
-rw-r--r--sc/source/ui/app/scmod.cxx2
-rw-r--r--sc/source/ui/dbgui/pfiltdlg.cxx2
-rw-r--r--sc/source/ui/docshell/dbdocfun.cxx2
-rw-r--r--sc/source/ui/docshell/docsh.cxx2
-rw-r--r--sc/source/ui/drawfunc/fuins2.cxx2
-rw-r--r--sc/source/ui/view/formatsh.cxx2
20 files changed, 35 insertions, 35 deletions
diff --git a/sal/osl/unx/uunxapi.cxx b/sal/osl/unx/uunxapi.cxx
index 1e9ea02fe324..3c50a10ac550 100644
--- a/sal/osl/unx/uunxapi.cxx
+++ b/sal/osl/unx/uunxapi.cxx
@@ -335,7 +335,7 @@ int utime_c(const char *cpPath, struct utimbuf *times)
int ftruncate_with_name(int fd, sal_uInt64 uSize, rtl_String* path)
{
/* When sandboxed on OS X, ftruncate(), even if it takes an
- * already open file descriptor which was retuned from an open()
+ * already open file descriptor which was returned from an open()
* call already checked by the sandbox, still requires a security
* scope bookmark for the file to be active in case the file is
* one that the sandbox doesn't otherwise allow access to. Luckily
diff --git a/sal/qa/osl/file/osl_File.cxx b/sal/qa/osl/file/osl_File.cxx
index b55e49ab7178..fa97645940a8 100644
--- a/sal/qa/osl/file/osl_File.cxx
+++ b/sal/qa/osl/file/osl_File.cxx
@@ -2225,7 +2225,7 @@ namespace osl_File
nError1 = testFile.open( osl_File_OpenFlag_Create );
bool bOK = ( File::E_ACCES == nError1 );
#ifdef _WIN32
- bOK = true; /// in Windows, you can create file in c:/ any way.
+ bOK = true; /// in Windows, you can create file in c:\ any way.
testFile.close();
deleteTestFile( aTestFile);
#endif
@@ -3032,10 +3032,10 @@ namespace osl_File
//copy $TEMP/tmpdir/tmpname to $ROOT/tmpname.
nError1 = ::osl::File::copy( aTmpName4, aTmpName7 );
#if defined(_WIN32)
- nError1 = ::osl::FileBase::E_ACCES; /// for Windows, c:/ is writtenable any way.
+ nError1 = ::osl::FileBase::E_ACCES; /// for Windows, c:\ is writable anyway.
deleteTestFile( aTmpName7);
#endif
- CPPUNIT_ASSERT_EQUAL_MESSAGE( "test for copy function: copy to an illigal place",
+ CPPUNIT_ASSERT_EQUAL_MESSAGE( "test for copy function: copy to an illegal place",
nError1, ::osl::FileBase::E_ACCES );
}
@@ -3162,11 +3162,11 @@ namespace osl_File
//move $TEMP/tmpdir/tmpname to $ROOT/tmpname.
nError1 = ::osl::File::move( aTmpName4, aTmpName7 );
#if defined(_WIN32)
- nError1 = ::osl::FileBase::E_ACCES; /// for Windows, c:/ is writtenable any way.
+ nError1 = ::osl::FileBase::E_ACCES; /// for Windows, c:\ is writable any way.
deleteTestFile( aTmpName7);
#endif
- CPPUNIT_ASSERT_EQUAL_MESSAGE( "test for move function: move to an illigal place",
+ CPPUNIT_ASSERT_EQUAL_MESSAGE( "test for move function: move to an illegal place",
nError1, ::osl::FileBase::E_ACCES );
}
diff --git a/sal/textenc/tcvtjp6.tab b/sal/textenc/tcvtjp6.tab
index 1dd7789ffe8d..f646d107b996 100644
--- a/sal/textenc/tcvtjp6.tab
+++ b/sal/textenc/tcvtjp6.tab
@@ -122,7 +122,7 @@ static ImplDBCSToUniLeadTab const aSJISUniLeadTab[256] =
{ 0x0059, 0, 0, nullptr }, /* 0x59 */
{ 0x005A, 0, 0, nullptr }, /* 0x5A */
{ 0x005B, 0, 0, nullptr }, /* 0x5B */
- { 0x005C, 0, 0, nullptr }, /* 0x5C */ /* is A5 (YEN SIGN), but for compatibiliy with ascii, we use 0x5C (SLASH) like MS CP392 */
+ { 0x005C, 0, 0, nullptr }, /* 0x5C */ /* is A5 (YEN SIGN), but for compatibility with ASCII, we use 0x5C (SLASH) like MS CP392 */
{ 0x005D, 0, 0, nullptr }, /* 0x5D */
{ 0x005E, 0, 0, nullptr }, /* 0x5E */
{ 0x005F, 0, 0, nullptr }, /* 0x5F */
@@ -156,7 +156,7 @@ static ImplDBCSToUniLeadTab const aSJISUniLeadTab[256] =
{ 0x007B, 0, 0, nullptr }, /* 0x7B */
{ 0x007C, 0, 0, nullptr }, /* 0x7C */
{ 0x007D, 0, 0, nullptr }, /* 0x7D */
- { 0x007E, 0, 0, nullptr }, /* 0x7E */ /* is 0x0203E (SPACING OVERSCORE), but for compatibiliy with ascii, we use 0x7E (TILDE) like MS CP392 */
+ { 0x007E, 0, 0, nullptr }, /* 0x7E */ /* is 0x0203E (SPACING OVERSCORE), but for compatibility with ASCII, we use 0x7E (TILDE) like MS CP392 */
{ 0x007F, 0, 0, nullptr }, /* 0x7F */
{ 0x005C, 0, 0, nullptr }, /* 0x80 */ /* APPLE additions over SJIS, we convert this like apple, because I think, this gives better result, than we take a replacement char */
{ 0, 0x40, 0xFC, aImplDBCSToUniTab_MS932_81 }, /* 0x81 */
@@ -694,7 +694,7 @@ static ImplDBCSToUniLeadTab const aMS932UniLeadTab[256] =
{ 0x0059, 0, 0, nullptr }, /* 0x59 */
{ 0x005A, 0, 0, nullptr }, /* 0x5A */
{ 0x005B, 0, 0, nullptr }, /* 0x5B */
- { 0x005C, 0, 0, nullptr }, /* 0x5C */ /* in SJIS this is A5 (YEN SIGN), but for compatibiliy with ascii, we use 0x5C like MS CP392 */
+ { 0x005C, 0, 0, nullptr }, /* 0x5C */ /* in SJIS this is A5 (YEN SIGN), but for compatibility with ASCII, we use 0x5C like MS CP392 */
{ 0x005D, 0, 0, nullptr }, /* 0x5D */
{ 0x005E, 0, 0, nullptr }, /* 0x5E */
{ 0x005F, 0, 0, nullptr }, /* 0x5F */
@@ -728,7 +728,7 @@ static ImplDBCSToUniLeadTab const aMS932UniLeadTab[256] =
{ 0x007B, 0, 0, nullptr }, /* 0x7B */
{ 0x007C, 0, 0, nullptr }, /* 0x7C */
{ 0x007D, 0, 0, nullptr }, /* 0x7D */
- { 0x007E, 0, 0, nullptr }, /* 0x7E */ /* in SJIS this is 0x0203E (SPACING OVERSCORE), but for compatibiliy with ascii, we use 0x7E (TILDE) like MS CP392 */
+ { 0x007E, 0, 0, nullptr }, /* 0x7E */ /* in SJIS this is 0x0203E (SPACING OVERSCORE), but for compatibility with ASCII, we use 0x7E (TILDE) like MS CP392 */
{ 0x007F, 0, 0, nullptr }, /* 0x7F */
{ 0x005C, 0, 0, nullptr }, /* 0x80 */ /* APPLE additions over SJIS, we convert this like apple, because I think, this gives better result, than we take a replacement char */
{ 0, 0x40, 0xFC, aImplDBCSToUniTab_MS932_81 }, /* 0x81 */
@@ -1251,7 +1251,7 @@ static ImplDBCSToUniLeadTab const aAPPLEJAPANESEUniLeadTab[256] =
{ 0x0059, 0, 0, nullptr }, /* 0x59 */
{ 0x005A, 0, 0, nullptr }, /* 0x5A */
{ 0x005B, 0, 0, nullptr }, /* 0x5B */
- { 0x005C, 0, 0, nullptr }, /* 0x5C */ /* is A5 (YEN SIGN), but for compatibiliy with ascii, we use 0x5C like MS CP392 */
+ { 0x005C, 0, 0, nullptr }, /* 0x5C */ /* is A5 (YEN SIGN), but for compatibility with ASCII, we use 0x5C like MS CP392 */
{ 0x005D, 0, 0, nullptr }, /* 0x5D */
{ 0x005E, 0, 0, nullptr }, /* 0x5E */
{ 0x005F, 0, 0, nullptr }, /* 0x5F */
@@ -1285,7 +1285,7 @@ static ImplDBCSToUniLeadTab const aAPPLEJAPANESEUniLeadTab[256] =
{ 0x007B, 0, 0, nullptr }, /* 0x7B */
{ 0x007C, 0, 0, nullptr }, /* 0x7C */
{ 0x007D, 0, 0, nullptr }, /* 0x7D */
- { 0x007E, 0, 0, nullptr }, /* 0x7E */ /* in SJIS this is 0x0203E (SPACING OVERSCORE), but for compatibiliy with ascii, we use 0x7E (TILDE) like MS CP392 */
+ { 0x007E, 0, 0, nullptr }, /* 0x7E */ /* in SJIS this is 0x0203E (SPACING OVERSCORE), but for compatibility with ASCII, we use 0x7E (TILDE) like MS CP392 */
{ 0x007F, 0, 0, nullptr }, /* 0x7F */
{ 0x005C, 0, 0, nullptr }, /* 0x80 */ /* APPLE additions over SJIS */
{ 0, 0x40, 0xFC, aImplDBCSToUniTab_MS932_81 }, /* 0x81 */
diff --git a/sc/qa/unit/data/functions/spreadsheet/fods/index.fods b/sc/qa/unit/data/functions/spreadsheet/fods/index.fods
index 3ec563213a29..ac039975d226 100644
--- a/sc/qa/unit/data/functions/spreadsheet/fods/index.fods
+++ b/sc/qa/unit/data/functions/spreadsheet/fods/index.fods
@@ -3718,7 +3718,7 @@
<table:covered-table-cell table:style-name="ce36"/>
<table:table-cell table:style-name="ce38"/>
<table:table-cell table:style-name="ce36" office:value-type="string" calcext:value-type="string" table:number-columns-spanned="2" table:number-rows-spanned="1">
- <text:p>Independant functions</text:p>
+ <text:p>Independent functions</text:p>
</table:table-cell>
<table:covered-table-cell table:style-name="ce36"/>
<table:table-cell table:number-columns-repeated="12"/>
@@ -4225,4 +4225,4 @@
</table:named-expressions>
</office:spreadsheet>
</office:body>
-</office:document> \ No newline at end of file
+</office:document>
diff --git a/sc/qa/unit/ucalc.cxx b/sc/qa/unit/ucalc.cxx
index 9e529779e43d..af2e645cca5b 100644
--- a/sc/qa/unit/ucalc.cxx
+++ b/sc/qa/unit/ucalc.cxx
@@ -5362,14 +5362,14 @@ void Test::testNoteLifeCycle()
// There's no ScTransferObject involved in the "fake" clipboard copy
// and ScDocument dtor asking IsClipboardSource() gets no, so emulate
- // the part that normally is reponsible for forgetting the caption
+ // the part that normally is responsible for forgetting the caption
// objects.
aClipDoc2.ClosingClipboardSource();
pDoc2->DeleteTab(0);
closeDocShell(xDocSh2);
- pasteFromClip( m_pDoc, aPosB5, &aClipDoc2); // should not crash ... tdf#104967
+ pasteFromClip( m_pDoc, aPosB5, &aClipDoc2); // should not crash... tdf#104967
ScPostIt* pNoteB5 = m_pDoc->GetNote(aPosB5);
CPPUNIT_ASSERT_MESSAGE("Failed to paste cell comment at B5.", pNoteB5);
const SdrCaptionObj* pCaptionB5 = pNoteB5->GetOrCreateCaption(aPosB5);
diff --git a/sc/source/core/data/drwlayer.cxx b/sc/source/core/data/drwlayer.cxx
index 4d3b093943b9..8618c55e5769 100644
--- a/sc/source/core/data/drwlayer.cxx
+++ b/sc/source/core/data/drwlayer.cxx
@@ -872,7 +872,7 @@ void ScDrawLayer::RecalcPos( SdrObject* pObj, ScDrawObjData& rData, bool bNegati
// we need to save the old anchor ( for persisting ) and also track any resize or repositions that happen.
// This is an evil hack, having a anchor that is one minute in terms of untransformed object and then later
- // in terms of the transformed object is not ideal, similary having 2 anchors per object is wasteful, can't
+ // in terms of the transformed object is not ideal, similarly having 2 anchors per object is wasteful, can't
// see another way out of this at the moment though.
rNoRotatedAnchor.maStart = rData.maStart;
rNoRotatedAnchor.maEnd = rData.maEnd;
diff --git a/sc/source/core/data/table2.cxx b/sc/source/core/data/table2.cxx
index f1f03f8a577a..ae86b15c09b1 100644
--- a/sc/source/core/data/table2.cxx
+++ b/sc/source/core/data/table2.cxx
@@ -2061,7 +2061,7 @@ void ScTable::FindMaxRotCol( RowInfo* pRowInfo, SCSIZE nArrCount, SCCOL nX1, SCC
return;
}
- // nRotMaxCol is initalized to SC_ROTMAX_NONE, nRowNo is already set
+ // nRotMaxCol is initialized to SC_ROTMAX_NONE, nRowNo is already set
SCROW nY1 = pRowInfo[0].nRowNo;
SCROW nY2 = pRowInfo[nArrCount-1].nRowNo;
diff --git a/sc/source/core/tool/ddelink.cxx b/sc/source/core/tool/ddelink.cxx
index f46b0fafb837..fb2f7fcc3796 100644
--- a/sc/source/core/tool/ddelink.cxx
+++ b/sc/source/core/tool/ddelink.cxx
@@ -199,12 +199,12 @@ sfx2::SvBaseLink::UpdateResult ScDdeLink::DataChanged(
if (HasListeners())
{
Broadcast(ScHint(SfxHintId::ScDataChanged, ScAddress()));
- pDoc->TrackFormulas(); // must happen immediatelly
+ pDoc->TrackFormulas(); // must happen immediately
pDoc->StartTrackTimer();
// StartTrackTimer asynchronously calls TrackFormulas, Broadcast(FID_DATACHANGED),
// ResetChanged, SetModified and Invalidate(SID_SAVEDOC/SID_DOC_MODIFIED)
- // TrackFormulas additionally once again immediatelly, so that, e.g., a formula still
+ // TrackFormulas additionally once again immediately, so that, e.g., a formula still
// located in the FormulaTrack doesn't get calculated by IdleCalc (#61676#)
// notify Uno objects (for XRefreshListener)
diff --git a/sc/source/core/tool/rangelst.cxx b/sc/source/core/tool/rangelst.cxx
index 87ca925190aa..942e4ca5a1ad 100644
--- a/sc/source/core/tool/rangelst.cxx
+++ b/sc/source/core/tool/rangelst.cxx
@@ -751,7 +751,7 @@ bool handleTwoRanges( const ScRange& rDeleteRange, ScRange* p, std::vector<ScRan
}
/**
- * Check if any of the followings applies:
+ * Check if any of the following applies:
*
* X = column; Y = row
* +----------+ +----------+
diff --git a/sc/source/filter/excel/xicontent.cxx b/sc/source/filter/excel/xicontent.cxx
index f0549d8541ca..150820e88ae0 100644
--- a/sc/source/filter/excel/xicontent.cxx
+++ b/sc/source/filter/excel/xicontent.cxx
@@ -1124,7 +1124,7 @@ XclImpDecrypterRef lclReadFilepass8_Standard( XclImpStream& rStrm )
XclImpDecrypterRef lclReadFilepass8_Strong(XclImpStream& rStream)
{
- //Its possible there are other variants in existance but these
+ //It is possible there are other variants in existence but these
//are the defaults I get with Excel 2013
XclImpDecrypterRef xDecr;
diff --git a/sc/source/filter/inc/excimp8.hxx b/sc/source/filter/inc/excimp8.hxx
index 4677de7ed595..02fc8c4240fe 100644
--- a/sc/source/filter/inc/excimp8.hxx
+++ b/sc/source/filter/inc/excimp8.hxx
@@ -61,7 +61,7 @@ public:
private:
// represents codename ( and associated modules )
- // not speficied directly in the binary format
+ // not specified directly in the binary format
std::vector<OUString> maAutoGeneratedCodeNames;
ExcScenarioList maScenList;
};
diff --git a/sc/source/filter/inc/xehelper.hxx b/sc/source/filter/inc/xehelper.hxx
index 477adc9218c0..b60d3438bc24 100644
--- a/sc/source/filter/inc/xehelper.hxx
+++ b/sc/source/filter/inc/xehelper.hxx
@@ -32,7 +32,7 @@ class ScfProgressBar;
/** The main progress bar for the export filter.
This class encapsulates creation and initialization of sub progress
- segments. The Activate***Segment() functions activate a specific segement
+ segments. The Activate***Segment() functions activate a specific segment
of the main progress bar. The implementation of these functions contain the
calculation of the needed size of the segment. Following calls of the
Progress() function increase the currently activated sub segment.
diff --git a/sc/source/filter/inc/xestyle.hxx b/sc/source/filter/inc/xestyle.hxx
index b21c1e1f578f..f22d4e4fda80 100644
--- a/sc/source/filter/inc/xestyle.hxx
+++ b/sc/source/filter/inc/xestyle.hxx
@@ -65,7 +65,7 @@ class XclExpPaletteImpl;
Supports color reduction to the maximum count of the current BIFF version.
An instance of this class collects all colors in the conversion phase of
the export, using the InsertColor() function. It returns a unique
- identidier for each passed color.
+ identifier for each passed color.
After the entire document is converted, the Finalize() function will reduce
the palette to the number of colors supported by the current BIFF version.
@@ -561,7 +561,7 @@ private:
An instance of this class collects all XF records in the conversion phase
of the export, using the Insert() and InsertStyle() functions. It returns a
- unique identidier for each XF record.
+ unique identifier for each XF record.
After the entire document is converted, the Finalize() function will reduce
the list to the number of XF records supported by the current BIFF version.
diff --git a/sc/source/ui/app/inputhdl.cxx b/sc/source/ui/app/inputhdl.cxx
index 3ae6c6f45be2..5cb601796539 100644
--- a/sc/source/ui/app/inputhdl.cxx
+++ b/sc/source/ui/app/inputhdl.cxx
@@ -1947,7 +1947,7 @@ void ScInputHandler::UpdateAdjust( sal_Unicode cTyped )
{
bool bNumber = false;
if (cTyped) // Restarted
- bNumber = (cTyped>='0' && cTyped<='9'); // Ony ciphers are numbers
+ bNumber = (cTyped>='0' && cTyped<='9'); // Only ciphers are numbers
else if ( pActiveViewSh )
{
ScDocument& rDoc = pActiveViewSh->GetViewData().GetDocShell()->GetDocument();
@@ -1991,7 +1991,7 @@ void ScInputHandler::UpdateAdjust( sal_Unicode cTyped )
void ScInputHandler::RemoveAdjust()
{
- // Delete hard alignement attributes
+ // Delete hard alignment attributes
bool bUndo = mpEditEngine->IsUndoEnabled();
if ( bUndo )
mpEditEngine->EnableUndo( false );
@@ -2136,7 +2136,7 @@ bool ScInputHandler::StartTable( sal_Unicode cTyped, bool bFromCommand, bool bIn
if ( eAttrAdjust == SVX_HOR_JUSTIFY_REPEAT &&
static_cast<const SfxBoolItem&>(pPattern->GetItem(ATTR_LINEBREAK)).GetValue() )
{
- // #i31843# "repeat" with "line breaks" is treated as default alignement
+ // #i31843# "repeat" with "line breaks" is treated as default alignment
eAttrAdjust = SVX_HOR_JUSTIFY_STANDARD;
}
}
diff --git a/sc/source/ui/app/scmod.cxx b/sc/source/ui/app/scmod.cxx
index 896e34a93ed9..580c34ac906c 100644
--- a/sc/source/ui/app/scmod.cxx
+++ b/sc/source/ui/app/scmod.cxx
@@ -163,7 +163,7 @@ ScModule::ScModule( SfxObjectFactory* pFact ) :
mbIsInSharedDocLoading( false ),
mbIsInSharedDocSaving( false )
{
- // The ResManager (DLL data) is not yet initalized in the ctor!
+ // The ResManager (DLL data) is not yet initialized in the ctor!
SetName("StarCalc"); // for Basic
ResetDragObject();
diff --git a/sc/source/ui/dbgui/pfiltdlg.cxx b/sc/source/ui/dbgui/pfiltdlg.cxx
index a44e319b4f00..570421fb7bae 100644
--- a/sc/source/ui/dbgui/pfiltdlg.cxx
+++ b/sc/source/ui/dbgui/pfiltdlg.cxx
@@ -378,7 +378,7 @@ const ScQueryItem& ScPivotFilterDlg::GetOutputItem()
OUString aStrVal = aValueEdArr[i]->GetText();
/*
- * The dialog returns the specifc field values "empty"/"non empty"
+ * The dialog returns the specific field values "empty"/"non empty"
* as constant in nVal in connection with the bQueryByString switch
* set to false
*/
diff --git a/sc/source/ui/docshell/dbdocfun.cxx b/sc/source/ui/docshell/dbdocfun.cxx
index 86680d88d94f..3269523711dd 100644
--- a/sc/source/ui/docshell/dbdocfun.cxx
+++ b/sc/source/ui/docshell/dbdocfun.cxx
@@ -1387,7 +1387,7 @@ bool ScDBDocFunc::CreatePivotTable(const ScDPObject& rDPObj, bool bRecord, bool
if (rDoc.GetDPCollection()->GetByName(rDestObj.GetName()))
rDestObj.SetName(OUString()); // ignore the invalid name, create a new name below
- // Syncronize groups between linked tables
+ // Synchronize groups between linked tables
{
bool bRefFound = false;
const ScDPDimensionSaveData* pGroups = nullptr;
diff --git a/sc/source/ui/docshell/docsh.cxx b/sc/source/ui/docshell/docsh.cxx
index b1f213f3f966..377fe43cad7c 100644
--- a/sc/source/ui/docshell/docsh.cxx
+++ b/sc/source/ui/docshell/docsh.cxx
@@ -566,7 +566,7 @@ bool ScDocShell::Load( SfxMedium& rMedium )
InitOptions(true);
// If this is an ODF file being loaded, then by default, use legacy processing
- // for tdf#99729 (if required, it will be overriden in *::ReadUserDataSequence())
+ // for tdf#99729 (if required, it will be overridden in *::ReadUserDataSequence())
if (IsOwnStorageFormat(rMedium))
{
if (aDocument.GetDrawLayer())
diff --git a/sc/source/ui/drawfunc/fuins2.cxx b/sc/source/ui/drawfunc/fuins2.cxx
index dfee80e32e7d..e9e63046bdea 100644
--- a/sc/source/ui/drawfunc/fuins2.cxx
+++ b/sc/source/ui/drawfunc/fuins2.cxx
@@ -589,7 +589,7 @@ FuInsertChart::FuInsertChart(ScTabViewShell* pViewSh, vcl::Window* pWin, ScDrawV
// Add here again if this is wanted (see task description for details)
// ChartHelper::AdaptDefaultsForChart( xObj );
-// pView->InsertObjectAtView(pObj, *pPV);//this call leads to an immidiate redraw and asks the chart for a visual representation
+// pView->InsertObjectAtView(pObj, *pPV);//this call leads to an immediate redraw and asks the chart for a visual representation
// use the page instead of the view to insert, so no undo action is created yet
SdrPage* pInsPage = pPV->GetPage();
diff --git a/sc/source/ui/view/formatsh.cxx b/sc/source/ui/view/formatsh.cxx
index f0d09762c105..b88721002cba 100644
--- a/sc/source/ui/view/formatsh.cxx
+++ b/sc/source/ui/view/formatsh.cxx
@@ -2220,7 +2220,7 @@ void ScFormatShell::GetTextAttrState( SfxItemSet& rSet )
SfxItemState eState;
- // own control on radio button functionallity:
+ // own control on radio button functionality:
// underline