-#ifndef __DALI_TOOLKIT_TEXT_RUN_CONTAINER_H__
-#define __DALI_TOOLKIT_TEXT_RUN_CONTAINER_H__
+#ifndef DALI_TOOLKIT_TEXT_RUN_CONTAINER_H
+#define DALI_TOOLKIT_TEXT_RUN_CONTAINER_H
/*
- * Copyright (c) 2016 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
{
T& run = *it;
+ if (run.characterRun.numberOfCharacters == 0)
+ continue;
+
const CharacterIndex lastRunIndex = run.characterRun.characterIndex + run.characterRun.numberOfCharacters - 1u;
if( lastRunIndex < index )
{
T& run = *it;
+ if (run.characterRun.numberOfCharacters == 0)
+ continue;
+
// Update the number of characters of the style run.
if( ( 0u == index ) && ( 0u == run.characterRun.characterIndex ) )
} // namespace Dali
-#endif // __DALI_TOOLKIT_TEXT_RUN_CONTAINER_H__
+#endif // DALI_TOOLKIT_TEXT_RUN_CONTAINER_H